How can I configure vue loader in addition to cssLoaders
eakenbor opened this issue · 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.