Skip to content

Commit

Permalink
auto webpack publicpath
Browse files Browse the repository at this point in the history
  • Loading branch information
minimit committed May 6, 2024
1 parent 0300423 commit 45436b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webpack/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = env => {
output: {
path: dirPublic,
pathinfo: true,
publicPath: '/',
publicPath: 'auto',
filename: '[name].bundle.js',
clean: true,
},
Expand Down
2 changes: 1 addition & 1 deletion webpack/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = () => {
mode: 'production',
output: {
path: dirPublic,
publicPath: '/',
publicPath: 'auto',
filename: '[name].[contenthash].bundle.js',
chunkFilename: '[id].[contenthash].js',
clean: true,
Expand Down

0 comments on commit 45436b2

Please sign in to comment.