Skip to content

Instantly share code, notes, and snippets.

Avatar

Hu Kevin sky790312

View GitHub Profile
@Akryum
Akryum / vue.config.js
Last active Apr 26, 2020
Auto-import styles with vue-cli 3
View vue.config.js
const path = require('path')
module.exports = {
chainWebpack: config => {
const types = ['vue-modules', 'vue', 'normal-modules', 'normal']
types.forEach(type => addStyleResource(config.module.rule('stylus').oneOf(type)))
},
}
function addStyleResource (rule) {
You can’t perform that action at this time.