diff --git a/docs/vue/customize-theme.en-US.md b/docs/vue/customize-theme.en-US.md index 45b275560..05d857b22 100644 --- a/docs/vue/customize-theme.en-US.md +++ b/docs/vue/customize-theme.en-US.md @@ -90,27 +90,17 @@ Create a new file `vue.config.js` in the project directory. ``` // vue.config.js module.exports = { - configureWebpack: { - module: { - rules: [{ - test: /\.less$/, - use: [{ - loader: 'style-loader', - }, { - loader: 'css-loader', - }, { - loader: 'less-loader', - options: { - modifyVars: { - 'primary-color': '#1DA57A', - 'link-color': '#1DA57A', - 'border-radius-base': '2px', - }, - javascriptEnabled: true, - }, - }], - }], - }, + css: { + loaderOptions: { + less: { + modifyVars: { + 'primary-color': '#1DA57A', + 'link-color': '#1DA57A', + 'border-radius-base': '2px', + }, + javascriptEnabled: true + } + } } } ``` diff --git a/docs/vue/customize-theme.zh-CN.md b/docs/vue/customize-theme.zh-CN.md index 54cbd6b81..d9d9dfafd 100644 --- a/docs/vue/customize-theme.zh-CN.md +++ b/docs/vue/customize-theme.zh-CN.md @@ -92,27 +92,17 @@ module.exports = { ``` // vue.config.js module.exports = { - configureWebpack: { - module: { - rules: [{ - test: /\.less$/, - use: [{ - loader: 'style-loader', - }, { - loader: 'css-loader', - }, { - loader: 'less-loader', - options: { - modifyVars: { - 'primary-color': '#1DA57A', - 'link-color': '#1DA57A', - 'border-radius-base': '2px', - }, - javascriptEnabled: true, - }, - }], - }], - }, + css: { + loaderOptions: { + less: { + modifyVars: { + 'primary-color': '#1DA57A', + 'link-color': '#1DA57A', + 'border-radius-base': '2px', + }, + javascriptEnabled: true + } + } } } ```