mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-04 13:08:48 +08:00
b07190e13d
* chore: update style * chore: add dark css build * test: update snapshot * chore: remove compact var * chore: update style * test: update snapshot
19 lines
480 B
JavaScript
19 lines
480 B
JavaScript
/**
|
|
* convert dark.less into js vars
|
|
*
|
|
* const darkVars = require('./dark-vars');
|
|
*/
|
|
const fs = require('fs');
|
|
const path = require('path');
|
|
const lessToJs = require('less-vars-to-js');
|
|
|
|
const stylePath = path.join(__dirname, '..', 'components', 'style');
|
|
const darkLess = fs.readFileSync(path.join(stylePath, 'themes', 'dark.less'), 'utf8');
|
|
|
|
const darkPaletteLess = lessToJs(darkLess, {
|
|
stripPrefix: true,
|
|
resolveVariables: false,
|
|
});
|
|
|
|
module.exports = darkPaletteLess;
|