diff --git a/packages/antd/create-style.ts b/packages/antd/create-style.ts index b3f77e1693f..1d841c22975 100644 --- a/packages/antd/create-style.ts +++ b/packages/antd/create-style.ts @@ -14,6 +14,16 @@ ${files .map((path) => { return `import '${path}'\n` }) + .join('')}`, + 'utf8' + ) + fs.writeFile( + path.resolve(__dirname, './src/style.less'), + `// auto generated code +${files + .map((path) => { + return `@import '${path}';\n` + }) .join('')}`, 'utf8' ) diff --git a/packages/next/create-style.ts b/packages/next/create-style.ts index acd89199ca8..a1cfee0420d 100644 --- a/packages/next/create-style.ts +++ b/packages/next/create-style.ts @@ -14,6 +14,16 @@ ${files .map((path) => { return `import '${path}'\n` }) + .join('')}`, + 'utf8' + ) + fs.writeFile( + path.resolve(__dirname, './src/main.scss'), + `// auto generated code +${files + .map((path) => { + return `@import '${path}';\n` + }) .join('')}`, 'utf8' ) diff --git a/packages/next/src/main.scss b/packages/next/src/main.scss new file mode 100644 index 00000000000..53ad94a086d --- /dev/null +++ b/packages/next/src/main.scss @@ -0,0 +1,16 @@ +// auto generated code +@import './array-base/main.scss'; +@import './array-cards/main.scss'; +@import './array-collapse/main.scss'; +@import './array-items/main.scss'; +@import './array-table/main.scss'; +@import './date-picker2/main.scss'; +@import './editable/main.scss'; +@import './form-button-group/main.scss'; +@import './form-grid/main.scss'; +@import './form-item/main.scss'; +@import './form-layout/main.scss'; +@import './form/main.scss'; +@import './preview-text/main.scss'; +@import './select-table/main.scss'; +@import './upload/main.scss';