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

@ -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: {
css: {
loaderOptions: {
less: {
modifyVars: {
'primary-color': '#1DA57A',
'link-color': '#1DA57A',
'border-radius-base': '2px',
},
javascriptEnabled: true,
},
}],
}],
},
javascriptEnabled: true
}
}
}
}
```

Loading…
Cancel
Save