summaryrefslogtreecommitdiff
path: root/config/webpack.config.js
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-05-03 11:54:54 -0500
committerMike Greiling <mike@pixelcog.com>2018-05-03 11:56:35 -0500
commit4bdfcc580d005c1f3c3afbf9015134000f95d05b (patch)
tree9781d6ac22471eb2caca8262f5b6edc663b7a0d7 /config/webpack.config.js
parenteb548e6eb14907e1d362a2e47e81498195a74183 (diff)
downloadgitlab-ce-4bdfcc580d005c1f3c3afbf9015134000f95d05b.tar.gz
add better filename template to worker-loader
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r--config/webpack.config.js10
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)$/,