Browse Source

样式支持modern模式

es6
guy 3 years ago
parent
commit
6ee9556792
  1. 20
      webpack/attachments.js
  2. 1
      webpack/webpack.prod.js

20
webpack/attachments.js

@ -101,6 +101,19 @@ const bundle = [].concat(
basicAttachmentMap.ts, 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( const coreJs = [].concat(
basicAttachmentMap.polyfill, basicAttachmentMap.polyfill,
basicAttachmentMap.core, basicAttachmentMap.core,
@ -212,11 +225,13 @@ const fineuiWithoutJqueryAndPolyfillJs = [].concat(
lodashJs, lodashJs,
"src/core/**/*.js", "src/core/**/*.js",
"src/data/**/*.js", "src/data/**/*.js",
"dist/fix/fix.js", "!src/core/platform/web/**/*.js",
]),
basicAttachmentMap.fix,
sync([
"src/base/**/*.js", "src/base/**/*.js",
"src/case/**/*.js", "src/case/**/*.js",
"!src/core/platform/web/**/*.js",
"!src/base/single/input/file.js", "!src/base/single/input/file.js",
"!src/case/ztree/**/*.js", "!src/case/ztree/**/*.js",
]), ]),
@ -247,6 +262,7 @@ module.exports = {
lodash: lodashJs, lodash: lodashJs,
font: basicAttachmentMap.font, font: basicAttachmentMap.font,
bundle: uniq(bundle), bundle: uniq(bundle),
bundleModern: uniq(bundleModern),
bundleIE: uniq(bundleIE), bundleIE: uniq(bundleIE),
fineuiWithoutNormalize: uniq(fineuiWithoutNormalize), fineuiWithoutNormalize: uniq(fineuiWithoutNormalize),
bundleWithoutNormalize: uniq(bundleWithoutNormalize), bundleWithoutNormalize: uniq(bundleWithoutNormalize),

1
webpack/webpack.prod.js

@ -26,6 +26,7 @@ module.exports = merge.smart(common, {
"2.0/fineui.ie.min": attachments.bundleIE, "2.0/fineui.ie.min": attachments.bundleIE,
"2.0/fineui": attachments.bundle, "2.0/fineui": attachments.bundle,
"2.0/fineui.min": 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': attachments.bundleWithoutNormalize,
'2.0/fineui_without_normalize.min': attachments.bundleWithoutNormalize, '2.0/fineui_without_normalize.min': attachments.bundleWithoutNormalize,
core: attachments.coreJs, core: attachments.coreJs,

Loading…
Cancel
Save