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