mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
1659aef02d
* chore: sync ant-design v4.20.7 * fix style build * clean the style * fix dropdown overlay * remove cdk styles * fix dropdown overwrite styles * fix doc styles
27 lines
984 B
TypeScript
27 lines
984 B
TypeScript
/**
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://github.com/ant-design-blazor/ant-design-blazor/blob/master/LICENSE
|
|
*/
|
|
|
|
import * as fs from 'fs-extra';
|
|
|
|
import * as path from 'path';
|
|
|
|
import { buildConfig } from '../build-config';
|
|
|
|
const sourcePath = buildConfig.publishDir;
|
|
const targetPath = path.join(buildConfig.publishDir, `src`);
|
|
|
|
export function copyStylesToSrc(): void {
|
|
fs.mkdirsSync(targetPath);
|
|
fs.copySync(path.resolve(sourcePath, `style`), path.resolve(targetPath, `style`));
|
|
fs.copySync(path.resolve(sourcePath, `ant-design-blazor.css`), path.resolve(targetPath, `ant-design-blazor.css`));
|
|
fs.copySync(path.resolve(sourcePath, `ant-design-blazor.min.css`), path.resolve(targetPath, `ant-design-blazor.min.css`));
|
|
fs.outputFileSync(
|
|
path.resolve(targetPath, `ant-design-blazor.less`),
|
|
`@root-entry-name: default;
|
|
@import "../style/entry.less";
|
|
@import "../components.less";`
|
|
);
|
|
}
|