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: {