1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/element-theme/lib/config.js

24 lines
611 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
var path = require('path')
var pkg = {}
try {
pkg = require(path.resolve(process.cwd(), 'package.json'))
} catch (err) {}
var config = Object.assign({
browsers: ['ie > 9', 'last 2 versions'],
out: './theme',
config: './element-variables.scss',
theme: 'element-theme-chalk',
minimize: false
}, pkg['element-theme'])
exports.themePath = path.resolve(process.cwd(), './node_modules/' + config.theme)
exports.out = config.out
exports.config = config.config
exports.minimize = config.minimize
exports.browsers = config.browsers
exports.components = config.components
exports.themeName = config.theme