Browse Source

无jira任务 回退

research/test
jian 1 year ago
parent
commit
67e6d3a3b1
  1. 6
      packages/fineui/webpack/attachments.js
  2. 49
      packages/fineui/webpack/webpack.prod.js

6
packages/fineui/webpack/attachments.js

@ -38,13 +38,9 @@ const fineuiForWorker = [].concat(
basicAttachmentMap.ts basicAttachmentMap.ts
); );
const fineuiForV8Export = [...fineuiForWorker].concat(
configJS
);
module.exports = { module.exports = {
fineui: uniq(fineui), fineui: uniq(fineui),
fineuiForWorker: uniq(fineuiForWorker), fineuiForWorker: uniq(fineuiForWorker),
fineuiForV8Export: uniq(fineuiForV8Export), fineuiForV8Export: uniq(fineuiForWorker),
bundleCss, bundleCss,
}; };

49
packages/fineui/webpack/webpack.prod.js

@ -1,24 +1,25 @@
const common = require("./webpack.common.js"); const common = require("./webpack.common.js");
const { merge } = require("webpack-merge"); const { merge } = require("webpack-merge");
const dirs = require("./dirs"); const dirs = require("./dirs");
const attachments = require("./attachments"); const attachments = require("./attachments");
module.exports = merge(common, { module.exports = merge(common, {
mode: "production", mode: "production",
target: ["web", "es5"], target: ["web", "es5"],
entry: { entry: {
"fineui.min": attachments.fineui, "fineui.min": attachments.fineui,
"fineui.worker.min": attachments.fineuiForWorker, "fineui.worker.min": attachments.fineuiForWorker,
"fineui.worker": attachments.fineuiForWorker, "fineui.worker": attachments.fineuiForWorker,
"fineui_without_jquery_polyfill.min": attachments.fineuiForV8Export, "fineui_without_jquery_polyfill.min": attachments.fineuiForWorker,
}, "fineui_without_jquery_polyfill": attachments.fineuiForWorker,
},
output: {
path: dirs.DEST, output: {
filename: "[name].js", path: dirs.DEST,
publicPath: "" filename: "[name].js",
}, publicPath: ""
},
devtool: "hidden-source-map"
}); devtool: "hidden-source-map"
});

Loading…
Cancel
Save