Typescript branch not support change theme ?
kingzez opened this issue · 1 comments
kingzez commented
Typescript branch not support change theme ?
kingzez commented
// vue.config.js
const path = require('path')
const poststylus = require('poststylus')
const pxtorem = require('postcss-pxtorem')
const resolve = file => path.resolve(__dirname, file)
module.exports = {
css: {
loaderOptions: {
stylus: {
use: [
poststylus([
pxtorem({
rootValue: 100,
propWhiteList: []
}),
'autoprefixer'
])
],
import: [
resolve('./src/assets/theme.custom')
]
}
}
},
transpileDependencies: [
'mand-mobile'
],
chainWebpack: config => {
const svgRule = config.module.rule('svg')
svgRule.uses.clear()
svgRule
.include
.add(resolve('./src/assets/images'))
.end()
.use('svg-sprite-loader')
.loader('svg-sprite-loader')
}
}
// theme.custom.styl
@import '~mand-mobile/components/_style/global'
@import '~mand-mobile/components/_style/mixin/util'
@import '~mand-mobile/components/_style/mixin/theme.components'
@import '~mand-mobile/components/_style/mixin/theme.basic'
// @import '~nib/lib/nib/vendor'
// @import '~nib/lib/nib/gradients'
color-primary = #1AAD19
done!