mirror of
https://github.com/haiwen/seahub.git
synced 2025-08-31 14:42:10 +00:00
remove hash
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user