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