mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-05 05:28:20 +08:00
16 lines
619 B
JavaScript
16 lines
619 B
JavaScript
|
const fs = require('fs');
|
||
|
const path = require('path');
|
||
|
const lessToJs = require('less-vars-to-js');
|
||
|
|
||
|
const stylePath = path.join(__dirname, '..', 'components', 'style');
|
||
|
const colorLess = fs.readFileSync(path.join(stylePath, 'color', 'colors.less'), 'utf8');
|
||
|
const defaultLess = fs.readFileSync(path.join(stylePath, 'themes', 'default.less'), 'utf8');
|
||
|
const compactLess = fs.readFileSync(path.join(stylePath, 'themes', 'compact.less'), 'utf8');
|
||
|
|
||
|
const compactPaletteLess = lessToJs(`${colorLess}${defaultLess}${compactLess}`, {
|
||
|
stripPrefix: true,
|
||
|
resolveVariables: false,
|
||
|
});
|
||
|
|
||
|
module.exports = compactPaletteLess;
|