Skip to content

Commit f1cf66f

Browse files
authored
chore: update css.js build #3678 (#3679)
1 parent 634dafc commit f1cf66f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

antd-tools/gulpfile.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ function babelify(js, modules) {
111111
if (file.path.match(/\/style\/index\.(js|jsx|ts|tsx)$/)) {
112112
const content = file.contents.toString(encoding);
113113
file.contents = Buffer.from(
114-
content.replace(/\/style\/?'/g, "/style/css'").replace(/\.less/g, '.css'),
114+
content
115+
.replace(/\/style\/?'/g, "/style/css'")
116+
.replace(/\/style\/?"/g, '/style/css"')
117+
.replace(/\.less/g, '.css'),
115118
);
116119
file.path = file.path.replace(/index\.(js|jsx|ts|tsx)$/, 'css.js');
117120
this.push(file);

0 commit comments

Comments
 (0)