Change vue cli 3 way of doing things (#264)

pull/287/head
Ulysse Buonomo 6 years ago committed by tangjinzhou
parent 1542d118e4
commit 4bb9e75875

@ -90,27 +90,17 @@ Create a new file `vue.config.js` in the project directory.
``` ```
// vue.config.js // vue.config.js
module.exports = { module.exports = {
configureWebpack: { css: {
module: { loaderOptions: {
rules: [{ less: {
test: /\.less$/, modifyVars: {
use: [{ 'primary-color': '#1DA57A',
loader: 'style-loader', 'link-color': '#1DA57A',
}, { 'border-radius-base': '2px',
loader: 'css-loader', },
}, { javascriptEnabled: true
loader: 'less-loader', }
options: { }
modifyVars: {
'primary-color': '#1DA57A',
'link-color': '#1DA57A',
'border-radius-base': '2px',
},
javascriptEnabled: true,
},
}],
}],
},
} }
} }
``` ```

@ -92,27 +92,17 @@ module.exports = {
``` ```
// vue.config.js // vue.config.js
module.exports = { module.exports = {
configureWebpack: { css: {
module: { loaderOptions: {
rules: [{ less: {
test: /\.less$/, modifyVars: {
use: [{ 'primary-color': '#1DA57A',
loader: 'style-loader', 'link-color': '#1DA57A',
}, { 'border-radius-base': '2px',
loader: 'css-loader', },
}, { javascriptEnabled: true
loader: 'less-loader', }
options: { }
modifyVars: {
'primary-color': '#1DA57A',
'link-color': '#1DA57A',
'border-radius-base': '2px',
},
javascriptEnabled: true,
},
}],
}],
},
} }
} }
``` ```

Loading…
Cancel
Save