uglify .js with query string

fixes webpack/react-starter#9
This commit is contained in:
Tobias Koppers 2014-10-10 07:35:00 +02:00
parent 1c406a6789
commit 2d3b2dc4f7
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ UglifyJsPlugin.prototype.apply = function(compiler) {
files.push(file);
});
files.forEach(function(file) {
if(!/\.js$/i.test(file)) {
if(!/\.js($|?)/i.test(file)) {
// UglifyJs only applies to javascript
return;
}