{"action":"opened","issue":{"url":"https://api.github.com/repos/iPlantCollaborativeOpenSource/troposphere/issues/291","repository_url":"https://api.github.com/repos/iPlantCollaborativeOpenSource/troposphere","labels_url":"https://api.github.com/repos/iPlantCollaborativeOpenSource/troposphere/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/iPlantCollaborativeOpenSource/troposphere/issues/291/comments","events_url":"https://api.github.com/repos/iPlantCollaborativeOpenSource/troposphere/issues/291/events","html_url":"https://github.com/iPlantCollaborativeOpenSource/troposphere/issues/291","id":135276683,"number":291,"title":"Explore using Node.js `querystring` in webpack loader configuration","user":{"login":"lenards","id":5923,"avatar_url":"https://avatars.githubusercontent.com/u/5923?v=3","gravatar_id":"","url":"https://api.github.com/users/lenards","html_url":"https://github.com/lenards","followers_url":"https://api.github.com/users/lenards/followers","following_url":"https://api.github.com/users/lenards/following{/other_user}","gists_url":"https://api.github.com/users/lenards/gists{/gist_id}","starred_url":"https://api.github.com/users/lenards/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lenards/subscriptions","organizations_url":"https://api.github.com/users/lenards/orgs","repos_url":"https://api.github.com/users/lenards/repos","events_url":"https://api.github.com/users/lenards/events{/privacy}","received_events_url":"https://api.github.com/users/lenards/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-21T23:43:03Z","updated_at":"2016-02-21T23:43:03Z","closed_at":null,"body":"The current `loader` definitions in [`webpack.config.js`](https://github.com/iPlantCollaborativeOpenSource/troposphere/blob/master/webpack.config.js#L49-L54) use a perfectly valid but not overall easy to read style with query string arguments. \r\n\r\n```javascript\r\n      { test: /\\.woff$/ , loader: \"url?limit=10000&mimetype=application/font-woff\" },\r\n      { test: /\\.woff2$/, loader: \"url?limit=10000&mimetype=application/font-woff2\" },\r\n ```\r\nsource: [webpack.config.js](https://github.com/iPlantCollaborativeOpenSource/troposphere/blob/master/webpack.config.js#L49-L54)\r\n\r\nIn [SurviveJS](http://survivejs.com/webpack_react/webpack_and_react/#alternative-loader-declarations), they note that you might want to use the Node.js [querystring](https://nodejs.org/api/querystring.html) module has a way to break out these parameters and then _stringfy_ in the `loader: ...` set.  "}}