1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +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

@@ -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.[hash].js',
filename: '[name].bundle.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.[hash].js',
filename: '[name]/bundle.common.js',
minChunks: function(module, count) {
if(module.resource && (/^.*\.(css|scss)$/).test(module.resource)) {
return false;

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;