Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

How can I configure vue loader in addition to cssLoaders #79

Open
eakenbor opened this issue Jan 21, 2020 · 0 comments
Open

How can I configure vue loader in addition to cssLoaders #79

eakenbor opened this issue Jan 21, 2020 · 0 comments

Comments

@eakenbor
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant