vue-cli-plugin-i18n
vue-cli-plugin-i18n copied to clipboard
How can I configure vue loader in addition to cssLoaders
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.