diff --git a/vue.config.js b/vue.config.js index b45e1ce..3d22681 100644 --- a/vue.config.js +++ b/vue.config.js @@ -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 } + } + } + ] + } } }