Skip to content

Commit ff97d1b

Browse files
authored
Merge pull request #24 from gas-buddy/jsmith/web-2277-contenthash
Change chunkhash to contenthash
2 parents 9d6e14b + 066702c commit ff97d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webpack/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function webpackConfig(optionsOrNull) {
3232
client: path.resolve('./src/client'),
3333
},
3434
output: options.output || {
35-
filename: isProd ? '[name].[chunkhash].js' : '[name].bundle.js',
35+
filename: isProd ? '[name].[contenthash].js' : '[name].bundle.js',
3636
publicPath: '/s/',
3737
path: path.resolve('./build-static'),
3838
},
@@ -125,7 +125,7 @@ export function webpackConfig(optionsOrNull) {
125125
// fix plugins for prod
126126
plugins.push(
127127
new MiniCssExtractPlugin({
128-
filename: isProd ? '[name].[chunkhash].css' : '[name].bundle.css',
128+
filename: isProd ? '[name].[contenthash].css' : '[name].bundle.css',
129129
...options.miniCss,
130130
}),
131131
);

0 commit comments

Comments
 (0)