add better filename template to worker-loader
This commit is contained in:
parent
eb548e6eb1
commit
4bdfcc580d
|
@ -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)$/,
|
||||
|
|
Loading…
Reference in New Issue