From 8df0cb290dab0a4010e9778dce65bc0fe2b447af Mon Sep 17 00:00:00 2001 From: "Zhenfei.Li" Date: Tue, 15 Mar 2022 10:46:18 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-10608=20refactor:=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/prepublish/prepublish.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prepublish/prepublish.js b/lib/prepublish/prepublish.js index c663782a7..4f082ab6a 100644 --- a/lib/prepublish/prepublish.js +++ b/lib/prepublish/prepublish.js @@ -45,7 +45,7 @@ function finalizeCompile() { let lessContent = ''; bundleWithoutNormalize.forEach(path => { - const relativePath = path.replace(/.*src\/less/, 'src/less').replace(/.*public\/less/g, 'public/less'); + const relativePath = path.replace(/.*src\/less/, 'src/less').replace(/.*public\/less/, 'public/less'); lessContent += `@import "../../${relativePath}";\n`; });