mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2024-11-08 12:11:53 +00:00
fix worker build
This commit is contained in:
parent
7908303b1d
commit
5ae8e036ae
1 changed files with 5 additions and 11 deletions
|
@ -10,16 +10,10 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
parallel: false,
|
||||
configureWebpack: {
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.worker\.js$/,
|
||||
use: {
|
||||
loader: 'worker-loader'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
chainWebpack: (config) => {
|
||||
config.module.rule('worker')
|
||||
.test(/\.worker\.js$/i)
|
||||
.use('worker-loader')
|
||||
.loader('worker-loader')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue