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
);
const fineuiForV8Export = [...fineuiForWorker].concat(
configJS
);
module.exports = {
fineui: uniq(fineui),
fineuiForWorker: uniq(fineuiForWorker),
fineuiForV8Export: uniq(fineuiForV8Export),
fineuiForV8Export: uniq(fineuiForWorker),
bundleCss,
};

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

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

Loading…
Cancel
Save