Skip to content

Commit

Permalink
chore: fix css error #3069
Browse files Browse the repository at this point in the history
  • Loading branch information
undefined committed Oct 31, 2020
1 parent 93629a8 commit 5696b19
Show file tree
Hide file tree
Showing 18 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions antd-tools/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ function babelify(js, modules) {
let stream = js.pipe(babel(babelConfig)).pipe(
through2.obj(function z(file, encoding, next) {
this.push(file.clone());
if (file.path.match(/\/style\/index\.(js|jsx)$/)) {
if (file.path.match(/\/style\/index\.(js|jsx|ts|tsx)$/)) {
const content = file.contents.toString(encoding);
file.contents = Buffer.from(
content.replace(/\/style\/?'/g, "/style/css'").replace(/\.less/g, '.css'),
);
file.path = file.path.replace(/index\.(js|jsx)$/, 'css.js');
file.path = file.path.replace(/index\.(js|jsx|ts|tsx)$/, 'css.js');
this.push(file);
next();
} else {
Expand Down
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.
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.
8 changes: 0 additions & 8 deletions components/transfer/style/index.js

This file was deleted.

File renamed without changes.
File renamed without changes.

0 comments on commit 5696b19

Please sign in to comment.