Authored by 陈峰

commit

... ... @@ -6,9 +6,9 @@ const distDir = path.join(__dirname, `../public/dist/${pkg.name}/bundle`);
module.exports = {
output: {
filename: 'bundle/static/js/[name].[chunkhash].js',
filename: 'static/js/[name].[chunkhash].js',
path: `${distDir}`,
chunkFilename: 'bundle/static/js/[name].[chunkhash].js',
chunkFilename: 'static/js/[name].[chunkhash].js',
publicPath: '/'
},
resolve: {
... ...
... ... @@ -65,7 +65,7 @@ if (process.env.NODE_ENV === 'production') {
parallel: true,
sourceMap: true
}));
webpackConfig.output.publicPath = '//cdn.yoho.cn/yohoblk-wap/';
webpackConfig.output.publicPath = '//cdn.yoho.cn/yohoblk-wap/bundle/';
}
module.exports = webpackConfig;
... ...