fix worker build

This commit is contained in:
Tixie 2019-03-10 05:03:12 +01:00
parent 7908303b1d
commit 5ae8e036ae

View file

@ -10,16 +10,10 @@ module.exports = {
}
},
parallel: false,
configureWebpack: {
module: {
rules: [
{
test: /\.worker\.js$/,
use: {
loader: 'worker-loader'
}
}
]
}
chainWebpack: (config) => {
config.module.rule('worker')
.test(/\.worker\.js$/i)
.use('worker-loader')
.loader('worker-loader')
}
}