mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2025-01-20 22:10:20 +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,
|
parallel: false,
|
||||||
configureWebpack: {
|
chainWebpack: (config) => {
|
||||||
module: {
|
config.module.rule('worker')
|
||||||
rules: [
|
.test(/\.worker\.js$/i)
|
||||||
{
|
.use('worker-loader')
|
||||||
test: /\.worker\.js$/,
|
.loader('worker-loader')
|
||||||
use: {
|
|
||||||
loader: 'worker-loader'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue