1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-12 13:24:52 +00:00

add hash for package module

This commit is contained in:
shanshuirenjia
2019-05-18 11:18:25 +08:00
parent fb0c71a5ee
commit db37499fea
2 changed files with 4 additions and 4 deletions

View File

@@ -232,7 +232,7 @@ module.exports = {
// This does not produce a real file. It's just the virtual path that is
// served by WebpackDevServer in development. This is the JS bundle
// containing code from all our entry points, and the Webpack runtime.
filename: '[name].bundle.js',
filename: '[name].bundle.[hash].js',
// There are also additional JS chunk files if you use code splitting.
chunkFilename: 'static/js/[name].chunk.js',
// This is the URL that app is served from. We use "/" in development.
@@ -433,7 +433,7 @@ module.exports = {
new webpack.optimize.CommonsChunkPlugin({
name: 'commons',
filename: '[name]/bundle.common.js',
filename: '[name]/bundle.common.[hash].js',
minChunks: function(module, count) {
if(module.resource && (/^.*\.(css|scss)$/).test(module.resource)) {
return false;