mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2025-01-20 18:30:20 +00:00
chore(webpack): Fallback to worker-loader in inline
This commit is contained in:
parent
3aea52350c
commit
0d5def0444
1 changed files with 12 additions and 5 deletions
|
@ -10,10 +10,17 @@ module.exports = {
|
|||
}
|
||||
},
|
||||
parallel: false,
|
||||
chainWebpack: (config) => {
|
||||
config.module.rule('worker')
|
||||
.test(/\.worker\.js$/i)
|
||||
.use('worker-loader')
|
||||
.loader('worker-loader')
|
||||
configureWebpack: {
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.worker\.js$/,
|
||||
use: {
|
||||
loader: 'worker-loader',
|
||||
options: { inline: true }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue