mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
73139eb5af
* 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>
33 lines
757 B
JavaScript
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,
|
|
};
|