diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-05-03 11:54:54 -0500 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-05-03 11:56:35 -0500 |
commit | 4bdfcc580d005c1f3c3afbf9015134000f95d05b (patch) | |
tree | 9781d6ac22471eb2caca8262f5b6edc663b7a0d7 /config/webpack.config.js | |
parent | eb548e6eb14907e1d362a2e47e81498195a74183 (diff) | |
download | gitlab-ce-4bdfcc580d005c1f3c3afbf9015134000f95d05b.tar.gz |
add better filename template to worker-loader
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 7c191a973fd..48c50f4a64d 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -129,7 +129,15 @@ const config = { }, { test: /\_worker\.js$/, - use: ['worker-loader', 'babel-loader'], + use: [ + { + loader: 'worker-loader', + options: { + name: '[name].[hash].worker.js', + }, + }, + 'babel-loader', + ], }, { test: /\.(worker(\.min)?\.js|pdf|bmpr)$/, |