Browse Source

router换新

es6
guy 3 years ago
parent
commit
871e67d824
  1. 32
      webpack/attachments.js
  2. 2
      webpack/webpack.common.js

32
webpack/attachments.js

@ -38,11 +38,8 @@ const basicAttachmentMap = {
"src/widget/**/*.js", "src/widget/**/*.js",
"src/component/**/*.js", "src/component/**/*.js",
]), ]),
router_old: sync([
"src/router/router_old.js",
]),
router: sync([ router: sync([
"src/router/router.js", "src/router/**/*.js",
]), ]),
'core_without_normalize': sync( 'core_without_normalize': sync(
["src/less/core/**/*.less", "src/less/theme/**/*.less", "!src/less/core/normalize.less", "!src/less/core/normalize2.less"], ["src/less/core/**/*.less", "src/less/theme/**/*.less", "!src/less/core/normalize.less", "!src/less/core/normalize2.less"],
@ -142,19 +139,6 @@ const fineui = [].concat(
basicAttachmentMap.ts, basicAttachmentMap.ts,
); );
const fineui_old = [].concat(
basicAttachmentMap.polyfill,
basicAttachmentMap.core,
basicAttachmentMap.fix,
basicAttachmentMap.base,
basicAttachmentMap.case,
basicAttachmentMap.widget,
basicAttachmentMap.router_old,
[fixCompact, workerCompact],
basicAttachmentMap.ui,
basicAttachmentMap.ts,
);
const fineuiModern = [].concat( const fineuiModern = [].concat(
sync(["src/less/modern.less"]), sync(["src/less/modern.less"]),
sync([ sync([
@ -175,18 +159,6 @@ const fineuiProxy = [].concat(
basicAttachmentMap.ts, basicAttachmentMap.ts,
); );
const fineuiProxy_old = [].concat(
basicAttachmentMap.core,
basicAttachmentMap.fixProxy,
basicAttachmentMap.base,
basicAttachmentMap.case,
basicAttachmentMap.widget,
basicAttachmentMap.router_old,
[fixCompact, workerCompact],
basicAttachmentMap.ui,
basicAttachmentMap.ts,
);
const fineuiWithoutJqueryAndPolyfillJs = [].concat( const fineuiWithoutJqueryAndPolyfillJs = [].concat(
sync([ sync([
"src/core/0.foundation.js", "src/core/0.foundation.js",
@ -233,10 +205,8 @@ module.exports = {
fineuiWithoutNormalize: uniq(fineuiWithoutNormalize), fineuiWithoutNormalize: uniq(fineuiWithoutNormalize),
bundleWithoutNormalize: uniq(bundleWithoutNormalize), bundleWithoutNormalize: uniq(bundleWithoutNormalize),
fineui: uniq(fineui), fineui: uniq(fineui),
fineui_old: uniq(fineui_old),
fineuiModern: uniq(fineuiModern), fineuiModern: uniq(fineuiModern),
fineuiProxy: uniq(fineuiProxy), fineuiProxy: uniq(fineuiProxy),
fineuiProxy_old: uniq(fineuiProxy_old),
fineuiWithoutJqueryAndPolyfillJs: uniq(fineuiWithoutJqueryAndPolyfillJs), fineuiWithoutJqueryAndPolyfillJs: uniq(fineuiWithoutJqueryAndPolyfillJs),
utils: uniq(basicAttachmentMap.utils), utils: uniq(basicAttachmentMap.utils),
demo: uniq(demo), demo: uniq(demo),

2
webpack/webpack.common.js

@ -24,9 +24,7 @@ module.exports = {
demo: attachments.demo, demo: attachments.demo,
// 用于启动dev模式时,工程引用调试 // 用于启动dev模式时,工程引用调试
fineui: attachments.fineui, fineui: attachments.fineui,
"fineui.old": attachments.fineui_old,
"fineui.proxy": attachments.fineuiProxy, "fineui.proxy": attachments.fineuiProxy,
"fineui.proxy.old": attachments.fineuiProxy_old,
}, },
externals: { externals: {
lodash: '_', lodash: '_',

Loading…
Cancel
Save