fix: dist build pipline

This commit is contained in:
ycjcl868 2019-12-03 22:07:17 +08:00
parent 7b826879de
commit e16b17b564
2 changed files with 4 additions and 2 deletions

View File

@ -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');

View File

@ -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.'));