chore: namespace webpack output

This commit is contained in:
endiliey 2018-08-01 16:08:55 +08:00
parent 0c69604fb2
commit 82be417197

View file

@ -10,7 +10,7 @@ module.exports = function createBaseConfig(props) {
config
.mode(isProd ? 'production' : 'development')
.output.path(outDir)
.filename(isProd ? '[name].[chunkhash].js' : '[name].js')
.filename(isProd ? 'static/js/[name].[chunkhash].js' : 'static/js/[name].js')
.publicPath(isProd ? publicPath : '/');
config.resolve