2018-03-26 16:04:04 +08:00
|
|
|
const path = require('path')
|
2018-06-08 19:06:34 +08:00
|
|
|
const isSpecial = process.env.BUILD_TYPE === 'special'
|
|
|
|
|
2018-03-26 16:04:04 +08:00
|
|
|
module.exports = function useMixin(style) {
|
2018-12-16 12:42:28 +08:00
|
|
|
if (process.env.BUILD_TYPE === 'variables') {
|
|
|
|
return style
|
2018-10-24 20:43:05 +08:00
|
|
|
.import(path.join(__dirname, '../components/_style/mixin/theme.components.styl'))
|
|
|
|
.import(path.join(__dirname, '../components/_style/mixin/theme.basic.styl'))
|
2019-03-08 15:44:49 +08:00
|
|
|
.import(path.join(__dirname, '../components/_style/mixin/theme.variable.styl'))
|
2018-10-24 20:43:05 +08:00
|
|
|
.import(path.join(__dirname, '../components/_style/mixin/util.styl'))
|
|
|
|
.import(path.join(__dirname, '../node_modules/nib/lib/nib/vendor'))
|
|
|
|
.import(path.join(__dirname, '../node_modules/nib/lib/nib/gradients'))
|
2018-12-16 12:42:28 +08:00
|
|
|
} else {
|
|
|
|
return style
|
|
|
|
.import(path.join(__dirname, '../components/_style/mixin/theme.components.styl'))
|
|
|
|
.import(path.join(__dirname, '../components/_style/mixin/theme.basic.styl'))
|
|
|
|
.import(path.join(__dirname, '../components/_style/mixin/util.styl'))
|
|
|
|
.import(path.join(__dirname, '../node_modules/nib/lib/nib/vendor'))
|
|
|
|
.import(path.join(__dirname, '../node_modules/nib/lib/nib/gradients'))
|
|
|
|
}
|
2019-03-08 15:44:49 +08:00
|
|
|
}
|