summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-05-04 11:37:37 -0500
committerMike Greiling <mike@pixelcog.com>2018-05-04 11:37:37 -0500
commitd5e4c7201b4b3e884cd63206aba9d315ade1c709 (patch)
tree6f03bd279975ad7810d97010fd4172e22c5490c3 /config
parent7e54e7aa1d892991fd8a82eccba273bbd3838af4 (diff)
downloadgitlab-ce-d5e4c7201b4b3e884cd63206aba9d315ade1c709.tar.gz
truncate long chunkhashes within filenames
Diffstat (limited to 'config')
-rw-r--r--config/webpack.config.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 48c50f4a64d..e7dba3ae718 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -72,8 +72,8 @@ const config = {
output: {
path: path.join(ROOT_PATH, 'public/assets/webpack'),
publicPath: '/assets/webpack/',
- filename: IS_PRODUCTION ? '[name].[chunkhash].bundle.js' : '[name].bundle.js',
- chunkFilename: IS_PRODUCTION ? '[name].[chunkhash].chunk.js' : '[name].chunk.js',
+ filename: IS_PRODUCTION ? '[name].[chunkhash:8].bundle.js' : '[name].bundle.js',
+ chunkFilename: IS_PRODUCTION ? '[name].[chunkhash:8].chunk.js' : '[name].chunk.js',
globalObject: 'this', // allow HMR and web workers to play nice
},
@@ -133,7 +133,7 @@ const config = {
{
loader: 'worker-loader',
options: {
- name: '[name].[hash].worker.js',
+ name: '[name].[hash:8].worker.js',
},
},
'babel-loader',
@@ -144,7 +144,7 @@ const config = {
exclude: /node_modules/,
loader: 'file-loader',
options: {
- name: '[name].[hash].[ext]',
+ name: '[name].[hash:8].[ext]',
},
},
{
@@ -155,7 +155,7 @@ const config = {
{
loader: 'css-loader',
options: {
- name: '[name].[hash].[ext]',
+ name: '[name].[hash:8].[ext]',
},
},
],
@@ -165,7 +165,7 @@ const config = {
include: /node_modules\/katex\/dist\/fonts/,
loader: 'file-loader',
options: {
- name: '[name].[hash].[ext]',
+ name: '[name].[hash:8].[ext]',
},
},
{