mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-29 18:50:00 +08:00
fix: dist build pipline
This commit is contained in:
parent
7b826879de
commit
e16b17b564
@ -70,7 +70,7 @@ function finalizeDist() {
|
||||
console.log('Built a entry less file to dist/antd-dark.less');
|
||||
|
||||
// Build antd-dark.js: dist/antd-dark.js, for less-loader
|
||||
const stylePath = path.join(process.cwd(), 'lib', 'style');
|
||||
const stylePath = path.join(process.cwd(), 'components', 'style');
|
||||
|
||||
const colorLess = fs.readFileSync(path.join(stylePath, 'color', 'colors.less'), 'utf8');
|
||||
const defaultLess = fs.readFileSync(path.join(stylePath, 'themes', 'default.less'), 'utf8');
|
||||
|
@ -9,7 +9,9 @@ $('dist')
|
||||
.hasFile('antd.min.css')
|
||||
.hasFile('antd.js')
|
||||
.hasFile('antd.min.js')
|
||||
.hasFile('antd.less');
|
||||
.hasFile('antd.less')
|
||||
.hasFile('antd-dark.less')
|
||||
.hasFile('antd-dark.js');
|
||||
|
||||
// eslint-disable-next-line
|
||||
console.log(chalk.green('✨ `dist` directory is valid.'));
|
||||
|
Loading…
Reference in New Issue
Block a user