Skip to content

Commit 5696b19

Browse files
author
undefined
committed
chore: fix css error #3069
1 parent 93629a8 commit 5696b19

File tree

18 files changed

+2
-10
lines changed

18 files changed

+2
-10
lines changed

antd-tools/gulpfile.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@ function babelify(js, modules) {
108108
let stream = js.pipe(babel(babelConfig)).pipe(
109109
through2.obj(function z(file, encoding, next) {
110110
this.push(file.clone());
111-
if (file.path.match(/\/style\/index\.(js|jsx)$/)) {
111+
if (file.path.match(/\/style\/index\.(js|jsx|ts|tsx)$/)) {
112112
const content = file.contents.toString(encoding);
113113
file.contents = Buffer.from(
114114
content.replace(/\/style\/?'/g, "/style/css'").replace(/\.less/g, '.css'),
115115
);
116-
file.path = file.path.replace(/index\.(js|jsx)$/, 'css.js');
116+
file.path = file.path.replace(/index\.(js|jsx|ts|tsx)$/, 'css.js');
117117
this.push(file);
118118
next();
119119
} else {
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

components/transfer/style/index.js

-8
This file was deleted.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)