Skip to content

Commit

Permalink
chore: splitChunks 적용 및 파일 이름에 컨텐츠 해시 포함
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoonkyoungme committed Sep 26, 2024
1 parent ff8c052 commit dd98631
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ module.exports = () => ({
},

output: {
filename: 'momo-bundle.js',
filename: '[name].[contenthash].js',
path: path.resolve(__dirname, 'dist'),
clean: true,
publicPath: '/',
Expand Down Expand Up @@ -98,4 +98,10 @@ module.exports = () => ({
maxEntrypointSize: 400000,
maxAssetSize: 400000,
},

optimization: {
splitChunks: {
chunks: 'all',
},
},
});

0 comments on commit dd98631

Please sign in to comment.