Browse Source

DEC-17943 chore : fineuiProxy配置

es6
zsmj1994 4 years ago
parent
commit
71ba3aefee
  1. 2035
      dist/fix/fix.proxy.js
  2. 16
      webpack/attachments.js
  3. 9
      webpack/webpack.common.js
  4. 4
      webpack/webpack.prod.js

2035
dist/fix/fix.proxy.js vendored

File diff suppressed because it is too large Load Diff

16
webpack/attachments.js

@ -9,6 +9,7 @@ function sync(patterns) {
}
const fixJs = "./dist/fix/fix.js";
const fixProxyJs = './dist/fix/fix.proxy.js';
const fixIEJs = "./dist/fix/fix.ie.js";
const fixCompact = "./dist/fix/fix.compact.js";
const fixIECompact = './dist/fix/fix.compact.ie.js';
@ -82,6 +83,7 @@ const basicAttachmentMap = {
"src/data/**/*.js",
]),
fix: [fixJs],
fixProxy: [fixProxyJs],
fixIE: [fixIEJs],
};
@ -153,6 +155,18 @@ const fineui = [].concat(
basicAttachmentMap.ts,
);
const fineuiProxy = [].concat(
basicAttachmentMap.core,
basicAttachmentMap.fixProxy,
basicAttachmentMap.base,
basicAttachmentMap.case,
basicAttachmentMap.widget,
basicAttachmentMap.router,
[fixCompact, workerCompact],
basicAttachmentMap.ui,
basicAttachmentMap.ts,
);
const fineuiIE = [].concat(
basicAttachmentMap.polyfillIE,
basicAttachmentMap.core,
@ -202,6 +216,7 @@ const demo = [].concat(
module.exports = {
fix: fixJs,
fixProxy: fixProxyJs,
fixIE: fixIEJs,
lodash: lodashJs,
font: basicAttachmentMap.font,
@ -209,6 +224,7 @@ module.exports = {
bundleIE: uniq(bundleIE),
bundleWithoutNormalize: uniq(bundleWithoutNormalize),
fineui: uniq(fineui),
fineuiProxy: uniq(fineuiProxy),
fineuiIE: uniq(fineuiIE),
fineuiWithoutJqueryAndPolyfillJs: uniq(fineuiWithoutJqueryAndPolyfillJs),
utils: uniq(basicAttachmentMap.utils),

9
webpack/webpack.common.js

@ -24,6 +24,7 @@ module.exports = {
demo: attachments.demo,
// 用于启动dev模式时,工程引用调试
fineui: attachments.fineui,
"fineui.proxy": attachments.fineuiProxy,
},
externals: {
lodash: '_',
@ -91,6 +92,14 @@ module.exports = {
options: 'Fix',
},
],
}, {
test: path.resolve(__dirname, '../', attachments.fixProxy),
use: [
{
loader: 'expose-loader',
options: 'Fix',
},
],
},
{
test: path.resolve(__dirname, '../', attachments.fixIE),

4
webpack/webpack.prod.js

@ -16,6 +16,7 @@ module.exports = merge.smart(common, {
entry: {
font: attachments.font,
"fineui.min": attachments.fineui,
"fineui.proxy.min": attachments.fineuiProxy,
"fineui.ie.min": attachments.fineuiIE,
utils: attachments.utils,
"utils.min": attachments.utils,
@ -59,8 +60,7 @@ module.exports = merge.smart(common, {
path: dirs.DEST,
filename: "[name].css",
}),
new ForkTsCheckerWebpackPlugin({
}),
new ForkTsCheckerWebpackPlugin({}),
new OptimizeCssAssetsPlugin({
assetNameRegExp: /\.css$/g,
cssProcessor: require("cssnano"),

Loading…
Cancel
Save