chore(webpack): Fallback to worker-loader in inline

This commit is contained in:
Tixie 2019-03-10 06:03:04 +01:00
parent 3aea52350c
commit 0d5def0444

View file

@ -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 }
}
}
]
}
}
}