Adds ?ver=hash to lazy loaded modules to avoid issues with cache.
This commit is contained in:
parent
b3cea53c72
commit
dae65fc5b1
|
@ -33,7 +33,8 @@ module.exports = {
|
|||
output: {
|
||||
path: path.resolve(__dirname, './src/assets/js/'),
|
||||
publicPath: './wp-content/plugins/tainacan/assets/js/',
|
||||
filename: '[name].js'
|
||||
filename: '[name].js',
|
||||
chunkFilename: `[name].js?ver=[contenthash]`
|
||||
},
|
||||
module: {
|
||||
rules: [
|
||||
|
|
Loading…
Reference in New Issue