diff options
author | Mike Greiling <mike@pixelcog.com> | 2018-05-03 19:54:54 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-05-03 19:56:35 +0300 |
commit | 4bdfcc580d005c1f3c3afbf9015134000f95d05b (patch) | |
tree | 9781d6ac22471eb2caca8262f5b6edc663b7a0d7 /config | |
parent | eb548e6eb14907e1d362a2e47e81498195a74183 (diff) |
add better filename template to worker-loader
Diffstat (limited to 'config')
-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)$/, |