Make Aurelia webpack config as consistent as possible with the other templates

This commit is contained in:
Steve Sanderson
2017-05-04 12:36:25 +01:00
parent 37df30929c
commit e3a8c13c22
2 changed files with 27 additions and 33 deletions

View File

@@ -6,7 +6,8 @@ var extractCSS = new ExtractTextPlugin('vendor.css');
module.exports = ({ prod } = {}) => {
const isDevBuild = !prod;
return {
return [{
stats: { modules: false },
resolve: {
extensions: ['.js']
},
@@ -51,5 +52,5 @@ module.exports = ({ prod } = {}) => {
].concat(isDevBuild ? [] : [
new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false } })
])
}
}]
};