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

remove hash

This commit is contained in:
shanshuirenjia
2019-05-21 10:41:28 +08:00
parent c680810419
commit ae3b5ee577
2 changed files with 4 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ module.exports = {
// Generated JS file names (with nested folders).
// There will be one main bundle, and one file per asynchronous chunk.
// We don't currently advertise code splitting but Webpack supports it.
filename: 'js/[name].[chunkhash].js',
filename: 'js/[name].js',
chunkFilename: 'js/[name].chunk.js',
// We inferred the "public path" (such as / or /my-project) from homepage.
// publicPath: publicPath,
@@ -382,7 +382,7 @@ module.exports = {
// https://webpack.js.org/plugins/commons-chunk-plugin/
new webpack.optimize.CommonsChunkPlugin({
name: 'commons',
filename: '[name]/bundle.common.[chunkhash].js',
filename: '[name]/bundle.common.js',
minChunks: function(module, count) {
if(module.resource && (/^.*\.(css|scss)$/).test(module.resource)) {
return false;