From 541c21b965b62a718d4072b62b6eb5b935cdb966 Mon Sep 17 00:00:00 2001 From: Treecat Date: Wed, 18 Oct 2023 16:07:42 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-15856=20fix:=E6=8A=8A=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=92=8CCSS=E5=B8=A6=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/package.json | 4 +++- packages/fineui/webpack/attachments.js | 3 ++- packages/fineui/webpack/webpack.prod.js | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/fineui/package.json b/packages/fineui/package.json index 5feec08ae..0bd7ddf2e 100644 --- a/packages/fineui/package.json +++ b/packages/fineui/package.json @@ -28,7 +28,9 @@ "prepublishToPrivate": "npm run build && node ./lib/prepublish.js", "publishToPrivate": "npm publish", "tsc": "tsc", - "link": "pnpm link --global" + "link": "pnpm link --global", + "build:biCss": "cross-env LESS_CONFIG_PATH=bi.lessconfig.json LESS_FILE_NAME=bi npm run webpack:css", + "build:jsyCss": "cross-env LESS_CONFIG_PATH=jsy.lessconfig.json LESS_FILE_NAME=jsy npm run webpack:css" }, "files": [ "dist", diff --git a/packages/fineui/webpack/attachments.js b/packages/fineui/webpack/attachments.js index 443a60dfc..afe2b8a04 100644 --- a/packages/fineui/webpack/attachments.js +++ b/packages/fineui/webpack/attachments.js @@ -7,7 +7,7 @@ const runtimePolyfill = ["core-js/stable"]; const basicAttachmentMap = { polyfill: sync(["src/polyfill/**/*.js"]).concat(runtimePolyfill), resource: sync(["src/less/resource/**/*.less"]), - font: sync(["public/less/font.less"]), + font: sync(["ui/less/font.less"]), ts: ["./typescript/bundle.ts"], ui: sync(["ui/less/app.less", "ui/less/**/*.less",]), less: sync([ @@ -50,4 +50,5 @@ module.exports = { fineuiForWorker: uniq(fineuiForWorker), fineuiWithout_Jquery_Polyfill: uniq(fineuiWithout_Jquery_Polyfill), bundleCss, + font: uniq(basicAttachmentMap.font) }; diff --git a/packages/fineui/webpack/webpack.prod.js b/packages/fineui/webpack/webpack.prod.js index 6df850f63..d012aeaef 100644 --- a/packages/fineui/webpack/webpack.prod.js +++ b/packages/fineui/webpack/webpack.prod.js @@ -11,6 +11,7 @@ module.exports = merge(common, { "fineui.min": attachments.fineui, "fineui.worker.min": attachments.fineuiForWorker, "fineui_without_jquery_polyfill.min": attachments.fineuiWithout_Jquery_Polyfill, + "font": attachments.font }, output: {