Browse Source

Pull request #1866: DEC-17943 chore : fineuiProxy配置

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

* commit '71ba3aefeec8ab79d214d2998135353b6b68f9c6':
  DEC-17943 chore : fineuiProxy配置
es6
parent
commit
463103f029
  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 fixJs = "./dist/fix/fix.js";
const fixProxyJs = './dist/fix/fix.proxy.js';
const fixIEJs = "./dist/fix/fix.ie.js"; const fixIEJs = "./dist/fix/fix.ie.js";
const fixCompact = "./dist/fix/fix.compact.js"; const fixCompact = "./dist/fix/fix.compact.js";
const fixIECompact = './dist/fix/fix.compact.ie.js'; const fixIECompact = './dist/fix/fix.compact.ie.js';
@ -82,6 +83,7 @@ const basicAttachmentMap = {
"src/data/**/*.js", "src/data/**/*.js",
]), ]),
fix: [fixJs], fix: [fixJs],
fixProxy: [fixProxyJs],
fixIE: [fixIEJs], fixIE: [fixIEJs],
}; };
@ -153,6 +155,18 @@ const fineui = [].concat(
basicAttachmentMap.ts, 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( const fineuiIE = [].concat(
basicAttachmentMap.polyfillIE, basicAttachmentMap.polyfillIE,
basicAttachmentMap.core, basicAttachmentMap.core,
@ -202,6 +216,7 @@ const demo = [].concat(
module.exports = { module.exports = {
fix: fixJs, fix: fixJs,
fixProxy: fixProxyJs,
fixIE: fixIEJs, fixIE: fixIEJs,
lodash: lodashJs, lodash: lodashJs,
font: basicAttachmentMap.font, font: basicAttachmentMap.font,
@ -209,6 +224,7 @@ module.exports = {
bundleIE: uniq(bundleIE), bundleIE: uniq(bundleIE),
bundleWithoutNormalize: uniq(bundleWithoutNormalize), bundleWithoutNormalize: uniq(bundleWithoutNormalize),
fineui: uniq(fineui), fineui: uniq(fineui),
fineuiProxy: uniq(fineuiProxy),
fineuiIE: uniq(fineuiIE), fineuiIE: uniq(fineuiIE),
fineuiWithoutJqueryAndPolyfillJs: uniq(fineuiWithoutJqueryAndPolyfillJs), fineuiWithoutJqueryAndPolyfillJs: uniq(fineuiWithoutJqueryAndPolyfillJs),
utils: uniq(basicAttachmentMap.utils), utils: uniq(basicAttachmentMap.utils),

9
webpack/webpack.common.js

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

4
webpack/webpack.prod.js

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

Loading…
Cancel
Save