vue-cli-plugin-i18n icon indicating copy to clipboard operation
vue-cli-plugin-i18n copied to clipboard

How can I configure vue loader in addition to cssLoaders

Open eakenbor opened this issue 5 years ago • 0 comments

In my webpack, vue loader is already configured as follows:

//In webpack.base.conf.js const vueLoaderConfig = require('./vue-loader.conf') module.exports = { module: { rules: [ ...(config.dev.useEslint ? [createLintingRule()] : []), { test: /.vue$/, loader: 'vue-loader', options: vueLoaderConfig },} ]}

//In vue-loader.conf.js module.exports = { loaders: utils.cssLoaders({ sourceMap: sourceMapEnabled, extract: isProduction, }) }

Now the problem is: how can I change the configuration to include i18n: '@kazupon/vue-i18n-loader' to webpack.base.conf.js without removing vueLoaderConfig?

Please can someone help? Thanks.

eakenbor avatar Jan 21 '20 23:01 eakenbor