Answer the question
In order to leave comments, you need to log in
How to specify JS-only output path in Webpack?
webpack.config.js
module.exports = {
...
entry: {
'js/main' : './main',
'js/common' : './common' //CommonChunksPlugin
},
...
}
if(Settings.jsUglify){
module.exports.plugins.push(
new webpack.optimize.UglifyJsPlugin({
compress : {
warnings : false,
drop_console: true,
unsafe: true
}
})
);
}
var js/main = ...
module.exports = {
...
entry: {
'main' : './main',
'common' : './common' //CommonChunksPlugin
},
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question