Browse Source

Pull request #3618: 无JIRA 自定义less变量构建

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '60826292c8dba7f84b9b2cca19b72965c46289d8':
  无JIRA  自定义less变量构建
research/test
Dailer-刘荣歆 1 year ago
parent
commit
06b3c63748
  1. 8
      packages/fineui/webpack/attachments.js
  2. 2
      packages/fineui/webpack/webpack.css.js

8
packages/fineui/webpack/attachments.js

@ -10,7 +10,7 @@ const basicAttachmentMap = {
resource: sync(["src/less/resource/**/*.less"]),
font: sync(["public/less/font.less"]),
ts: ["./typescript/bundle.ts"],
ui: sync(["ui/less/app.less", "ui/less/**/*.less", "ui/js/**/*.js"]),
ui: sync(["ui/less/app.less", "ui/less/**/*.less",]),
less: sync([
"src/less/core/**/*.less",
"src/less/theme/**/*.less",
@ -20,23 +20,21 @@ const basicAttachmentMap = {
"src/less/component/**/*.less"
]),
js_bundle: sync(["src/bundle.js"]),
js_worker: sync(["src/worker.js"])
js_worker: sync(["src/worker.js"]),
};
const bundleCss = [].concat(basicAttachmentMap.less, sync(["public/less/app.less", "public/less/**/*.less"]));
const bundleCss = uniq([].concat(basicAttachmentMap.less, basicAttachmentMap.ui, sync(["public/less/app.less", "public/less/**/*.less"])));
const fineui = [].concat(
bundleCss,
basicAttachmentMap.polyfill,
basicAttachmentMap.js_bundle,
basicAttachmentMap.ui,
basicAttachmentMap.ts,
configJS
);
const fineuiForWorker = [].concat(
basicAttachmentMap.js_worker,
basicAttachmentMap.ui,
basicAttachmentMap.ts
);

2
packages/fineui/webpack/webpack.css.js

@ -6,6 +6,6 @@ prod.entry = {};
module.exports = merge(prod, {
mode: "production",
entry: {
[`${process.env.LESS_FILE_NAME}.min`]: attachments.bundleCss,
[`${process.env.LESS_FILE_NAME || "custom"}.min`]: attachments.bundleCss,
},
});

Loading…
Cancel
Save