mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-11-30 11:08:00 +08:00
14 lines
406 B
JavaScript
14 lines
406 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 compactLess = fs.readFileSync(path.join(stylePath, 'themes', 'compact.less'), 'utf8');
|
||
|
|
||
|
const compactPaletteLess = lessToJs(compactLess, {
|
||
|
stripPrefix: true,
|
||
|
resolveVariables: false,
|
||
|
});
|
||
|
|
||
|
module.exports = compactPaletteLess;
|