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$/,
use: [{
loader: 'style-loader',
}, {
loader: 'css-loader',
}, {
loader: 'less-loader',
options: {
modifyVars: { modifyVars: {
'primary-color': '#1DA57A', 'primary-color': '#1DA57A',
'link-color': '#1DA57A', 'link-color': '#1DA57A',
'border-radius-base': '2px', 'border-radius-base': '2px',
}, },
javascriptEnabled: true, 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$/,
use: [{
loader: 'style-loader',
}, {
loader: 'css-loader',
}, {
loader: 'less-loader',
options: {
modifyVars: { modifyVars: {
'primary-color': '#1DA57A', 'primary-color': '#1DA57A',
'link-color': '#1DA57A', 'link-color': '#1DA57A',
'border-radius-base': '2px', 'border-radius-base': '2px',
}, },
javascriptEnabled: true, javascriptEnabled: true
}, }
}], }
}],
},
} }
} }
``` ```

Loading…
Cancel
Save