Skip to content

Commit

Permalink
添加打包的publicPath
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinMint55 committed Apr 1, 2019
1 parent 3f652d9 commit c27462e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const webpackConfig = {
mode: 'production',
output: {
path: config.build.assetsRoot,
publicPath: config.build.assetsPublicPath,
filename: 'js/[name].[chunkhash].js',
chunkFilename: 'js/[name].[chunkhash].js',
},
Expand Down
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
},
build: {
assetsRoot: path.resolve(__dirname, './demo'),
assetsPublicPath: '/',
assetsPublicPath: '/kmExcel/',
bundleAnalyzerReport: false
},
release: {
Expand Down

0 comments on commit c27462e

Please sign in to comment.