ant-design/.antd-tools.config.js
MadCcc 73139eb5af
docs: 5.0.0 changelog (#38642)
* docs: 5.0.0 changelog

* chore: bump version

* chore: english changelog

* chore: code clean

* docs: add missing break line

* docs: eng version pretter

* chore: update

* chore: clean

* chore: remove backtop doc

* chore: update changelog

* chore: code clean

* docs: update

* rm eng log

Co-authored-by: 二货机器人 <smith3816@gmail.com>
2022-11-18 13:10:45 +08:00

33 lines
757 B
JavaScript

const fs = require('fs');
const path = require('path');
function finalizeCompile() {
if (fs.existsSync(path.join(__dirname, './es'))) {
// Build less entry file: dist/antd.less
fs.copyFileSync(
path.join(process.cwd(), 'components', 'style', 'reset.css'),
path.join(process.cwd(), 'es', 'style', 'reset.css'),
);
}
}
function finalizeDist() {
if (fs.existsSync(path.join(__dirname, './dist'))) {
// Build less entry file: dist/antd.less
fs.copyFileSync(
path.join(process.cwd(), 'components', 'style', 'reset.css'),
path.join(process.cwd(), 'dist', 'reset.css'),
);
}
}
module.exports = {
compile: {
finalize: finalizeCompile,
},
dist: {
finalize: finalizeDist,
},
bail: true,
};