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, parallel: false,
configureWebpack: { chainWebpack: (config) => {
module: { config.module.rule('worker')
rules: [ .test(/\.worker\.js$/i)
{ .use('worker-loader')
test: /\.worker\.js$/, .loader('worker-loader')
use: {
loader: 'worker-loader'
}
}
]
}
} }
} }