Browse Source

KERNEL-15856 fix:把字体和CSS带上

research/test
Treecat 1 year ago
parent
commit
541c21b965
  1. 4
      packages/fineui/package.json
  2. 3
      packages/fineui/webpack/attachments.js
  3. 1
      packages/fineui/webpack/webpack.prod.js

4
packages/fineui/package.json

@ -28,7 +28,9 @@
"prepublishToPrivate": "npm run build && node ./lib/prepublish.js", "prepublishToPrivate": "npm run build && node ./lib/prepublish.js",
"publishToPrivate": "npm publish", "publishToPrivate": "npm publish",
"tsc": "tsc", "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": [ "files": [
"dist", "dist",

3
packages/fineui/webpack/attachments.js

@ -7,7 +7,7 @@ const runtimePolyfill = ["core-js/stable"];
const basicAttachmentMap = { const basicAttachmentMap = {
polyfill: sync(["src/polyfill/**/*.js"]).concat(runtimePolyfill), polyfill: sync(["src/polyfill/**/*.js"]).concat(runtimePolyfill),
resource: sync(["src/less/resource/**/*.less"]), resource: sync(["src/less/resource/**/*.less"]),
font: sync(["public/less/font.less"]), font: sync(["ui/less/font.less"]),
ts: ["./typescript/bundle.ts"], ts: ["./typescript/bundle.ts"],
ui: sync(["ui/less/app.less", "ui/less/**/*.less",]), ui: sync(["ui/less/app.less", "ui/less/**/*.less",]),
less: sync([ less: sync([
@ -50,4 +50,5 @@ module.exports = {
fineuiForWorker: uniq(fineuiForWorker), fineuiForWorker: uniq(fineuiForWorker),
fineuiWithout_Jquery_Polyfill: uniq(fineuiWithout_Jquery_Polyfill), fineuiWithout_Jquery_Polyfill: uniq(fineuiWithout_Jquery_Polyfill),
bundleCss, bundleCss,
font: uniq(basicAttachmentMap.font)
}; };

1
packages/fineui/webpack/webpack.prod.js

@ -11,6 +11,7 @@ module.exports = merge(common, {
"fineui.min": attachments.fineui, "fineui.min": attachments.fineui,
"fineui.worker.min": attachments.fineuiForWorker, "fineui.worker.min": attachments.fineuiForWorker,
"fineui_without_jquery_polyfill.min": attachments.fineuiWithout_Jquery_Polyfill, "fineui_without_jquery_polyfill.min": attachments.fineuiWithout_Jquery_Polyfill,
"font": attachments.font
}, },
output: { output: {

Loading…
Cancel
Save