Skip to content

Commit 5dc9938

Browse files
committed
Include the hash for bundle all the time so browsers properly update the code when a file changes
1 parent 1d20de0 commit 5dc9938

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const config = {
1212
mode: PROD ? "production" : "development",
1313
entry: ['./examples/index.js'],
1414
output: {
15-
filename: DEV ? 'bundle.js' : 'bundle.[hash].js',
15+
filename: 'bundle.[hash].js',
1616
path: path.resolve(__dirname, '../public'),
1717
publicPath: DEV ? '/' : '/react-contextmenu/',
1818
hashDigestLength: 6,

0 commit comments

Comments
 (0)