From 6ee9556792e5b0b76807ad685f1c9065f37771be Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 8 Sep 2021 00:47:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=94=AF=E6=8C=81modern?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webpack/attachments.js | 20 ++++++++++++++++++-- webpack/webpack.prod.js | 1 + 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/webpack/attachments.js b/webpack/attachments.js index 79a0709a6..16ae13072 100644 --- a/webpack/attachments.js +++ b/webpack/attachments.js @@ -101,6 +101,19 @@ const bundle = [].concat( basicAttachmentMap.ts, ); +const bundleModern = [].concat( + basicAttachmentMap.core, + basicAttachmentMap.fixProxy, + basicAttachmentMap.base, + basicAttachmentMap.case, + basicAttachmentMap.widget, + sync(["public/modern/app.less", "public/modern/**/*.less"]), + [fixCompact, workerCompact], + basicAttachmentMap.router, + sync(["public/js/**/*.js", "public/js/index.js", "i18n/i18n.cn.js"]), + basicAttachmentMap.ts, +); + const coreJs = [].concat( basicAttachmentMap.polyfill, basicAttachmentMap.core, @@ -212,11 +225,13 @@ const fineuiWithoutJqueryAndPolyfillJs = [].concat( lodashJs, "src/core/**/*.js", "src/data/**/*.js", - "dist/fix/fix.js", + "!src/core/platform/web/**/*.js", + ]), + basicAttachmentMap.fix, + sync([ "src/base/**/*.js", "src/case/**/*.js", - "!src/core/platform/web/**/*.js", "!src/base/single/input/file.js", "!src/case/ztree/**/*.js", ]), @@ -247,6 +262,7 @@ module.exports = { lodash: lodashJs, font: basicAttachmentMap.font, bundle: uniq(bundle), + bundleModern: uniq(bundleModern), bundleIE: uniq(bundleIE), fineuiWithoutNormalize: uniq(fineuiWithoutNormalize), bundleWithoutNormalize: uniq(bundleWithoutNormalize), diff --git a/webpack/webpack.prod.js b/webpack/webpack.prod.js index e1fd15819..3ab3b949e 100644 --- a/webpack/webpack.prod.js +++ b/webpack/webpack.prod.js @@ -26,6 +26,7 @@ module.exports = merge.smart(common, { "2.0/fineui.ie.min": attachments.bundleIE, "2.0/fineui": attachments.bundle, "2.0/fineui.min": attachments.bundle, + "2.0/fineui.modern.min": attachments.bundleModern, '2.0/fineui_without_normalize': attachments.bundleWithoutNormalize, '2.0/fineui_without_normalize.min': attachments.bundleWithoutNormalize, core: attachments.coreJs,