mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 16:10:26 +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
|
// 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
|
// served by WebpackDevServer in development. This is the JS bundle
|
||||||
// containing code from all our entry points, and the Webpack runtime.
|
// 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.
|
// There are also additional JS chunk files if you use code splitting.
|
||||||
chunkFilename: 'static/js/[name].chunk.js',
|
chunkFilename: 'static/js/[name].chunk.js',
|
||||||
// This is the URL that app is served from. We use "/" in development.
|
// This is the URL that app is served from. We use "/" in development.
|
||||||
@@ -433,7 +433,7 @@ module.exports = {
|
|||||||
|
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
name: 'commons',
|
name: 'commons',
|
||||||
filename: '[name]/bundle.common.[hash].js',
|
filename: '[name]/bundle.common.js',
|
||||||
minChunks: function(module, count) {
|
minChunks: function(module, count) {
|
||||||
if(module.resource && (/^.*\.(css|scss)$/).test(module.resource)) {
|
if(module.resource && (/^.*\.(css|scss)$/).test(module.resource)) {
|
||||||
return false;
|
return false;
|
||||||
|
@@ -101,7 +101,7 @@ module.exports = {
|
|||||||
// Generated JS file names (with nested folders).
|
// Generated JS file names (with nested folders).
|
||||||
// There will be one main bundle, and one file per asynchronous chunk.
|
// There will be one main bundle, and one file per asynchronous chunk.
|
||||||
// We don't currently advertise code splitting but Webpack supports it.
|
// 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',
|
chunkFilename: 'js/[name].chunk.js',
|
||||||
// We inferred the "public path" (such as / or /my-project) from homepage.
|
// We inferred the "public path" (such as / or /my-project) from homepage.
|
||||||
// publicPath: publicPath,
|
// publicPath: publicPath,
|
||||||
@@ -382,7 +382,7 @@ module.exports = {
|
|||||||
// https://webpack.js.org/plugins/commons-chunk-plugin/
|
// https://webpack.js.org/plugins/commons-chunk-plugin/
|
||||||
new webpack.optimize.CommonsChunkPlugin({
|
new webpack.optimize.CommonsChunkPlugin({
|
||||||
name: 'commons',
|
name: 'commons',
|
||||||
filename: '[name]/bundle.common.[chunkhash].js',
|
filename: '[name]/bundle.common.js',
|
||||||
minChunks: function(module, count) {
|
minChunks: function(module, count) {
|
||||||
if(module.resource && (/^.*\.(css|scss)$/).test(module.resource)) {
|
if(module.resource && (/^.*\.(css|scss)$/).test(module.resource)) {
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user