add better filename template to worker-loader

This commit is contained in:
Mike Greiling 2018-05-03 11:54:54 -05:00
parent eb548e6eb1
commit 4bdfcc580d
No known key found for this signature in database
GPG Key ID: 0303DF507FA67596
1 changed files with 9 additions and 1 deletions

View File

@ -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)$/,