File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ const htmlWebpackPluginCommon = {
2525 APP_NAME
2626} ;
2727
28+ // Change this number to bypass all old HTTP caches
29+ const CACHE_EPOCH = 2 ;
30+
2831const base = {
2932 mode : process . env . NODE_ENV === 'production' ? 'production' : 'development' ,
3033 devtool : process . env . SOURCEMAP || ( process . env . NODE_ENV === 'production' ? false : 'cheap-module-source-map' ) ,
@@ -47,8 +50,8 @@ const base = {
4750 } ,
4851 output : {
4952 library : 'GUI' ,
50- filename : process . env . NODE_ENV === 'production' ? 'js /[name].[contenthash].js' : 'js/[name].js' ,
51- chunkFilename : process . env . NODE_ENV === 'production' ? 'js /[name].[contenthash].js' : 'js/[name].js' ,
53+ filename : process . env . NODE_ENV === 'production' ? `js- ${ CACHE_EPOCH } /[name].[contenthash].js` : 'js/[name].js' ,
54+ chunkFilename : process . env . NODE_ENV === 'production' ? `js- ${ CACHE_EPOCH } /[name].[contenthash].js` : 'js/[name].js' ,
5255 publicPath : root
5356 } ,
5457 resolve : {
You can’t perform that action at this time.
0 commit comments