mirror of https://github.com/webpack/webpack.git
parent
1c406a6789
commit
2d3b2dc4f7
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue