Showing
2 changed files
with
3 additions
and
3 deletions
@@ -6,9 +6,9 @@ const distDir = path.join(__dirname, `../public/dist/${pkg.name}/bundle`); | @@ -6,9 +6,9 @@ const distDir = path.join(__dirname, `../public/dist/${pkg.name}/bundle`); | ||
6 | 6 | ||
7 | module.exports = { | 7 | module.exports = { |
8 | output: { | 8 | output: { |
9 | - filename: 'bundle/static/js/[name].[chunkhash].js', | 9 | + filename: 'static/js/[name].[chunkhash].js', |
10 | path: `${distDir}`, | 10 | path: `${distDir}`, |
11 | - chunkFilename: 'bundle/static/js/[name].[chunkhash].js', | 11 | + chunkFilename: 'static/js/[name].[chunkhash].js', |
12 | publicPath: '/' | 12 | publicPath: '/' |
13 | }, | 13 | }, |
14 | resolve: { | 14 | resolve: { |
@@ -65,7 +65,7 @@ if (process.env.NODE_ENV === 'production') { | @@ -65,7 +65,7 @@ if (process.env.NODE_ENV === 'production') { | ||
65 | parallel: true, | 65 | parallel: true, |
66 | sourceMap: true | 66 | sourceMap: true |
67 | })); | 67 | })); |
68 | - webpackConfig.output.publicPath = '//cdn.yoho.cn/yohoblk-wap/'; | 68 | + webpackConfig.output.publicPath = '//cdn.yoho.cn/yohoblk-wap/bundle/'; |
69 | 69 | ||
70 | } | 70 | } |
71 | module.exports = webpackConfig; | 71 | module.exports = webpackConfig; |
-
Please register or login to post a comment