From f1cf66fcc4965ab51db72b4cece4068d21a9eb80 Mon Sep 17 00:00:00 2001 From: zkwolf Date: Wed, 17 Feb 2021 21:22:15 +0800 Subject: [PATCH] chore: update css.js build #3678 (#3679) --- antd-tools/gulpfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/antd-tools/gulpfile.js b/antd-tools/gulpfile.js index 7e1d8c39d..63501d449 100644 --- a/antd-tools/gulpfile.js +++ b/antd-tools/gulpfile.js @@ -111,7 +111,10 @@ function babelify(js, modules) { 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'), + content + .replace(/\/style\/?'/g, "/style/css'") + .replace(/\/style\/?"/g, '/style/css"') + .replace(/\.less/g, '.css'), ); file.path = file.path.replace(/index\.(js|jsx|ts|tsx)$/, 'css.js'); this.push(file);