Commit 4bdfcc58 authored by Mike Greiling's avatar Mike Greiling

add better filename template to worker-loader

parent eb548e6e
......@@ -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)$/,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment