cache bursting support in webpack.mix.js

This commit is contained in:
Peter Papp
2020-08-31 08:22:51 +02:00
parent 6762ed25dc
commit 83a951b3af
65 changed files with 134 additions and 127 deletions
+7
View File
@@ -22,5 +22,12 @@ mix.js('resources/js/main.js', 'public/js')
"@": path.resolve(__dirname, "resources/js"),
}
},
output: {
chunkFilename: '[name].js?id=[chunkhash]',
}
})
.disableNotifications();
if (mix.inProduction()) {
mix.version();
}