Adds ?ver=hash to lazy loaded modules to avoid issues with cache.

This commit is contained in:
mateuswetah 2023-01-05 11:56:32 -03:00
parent b3cea53c72
commit dae65fc5b1
1 changed files with 2 additions and 1 deletions

View File

@ -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: [