Browse Source

chore: 打包

es6
guy 3 years ago
parent
commit
faabc1ac15
  1. 6
      webpack/components.js
  2. 3
      webpack/webpack.prod.js

6
webpack/components.js

@ -10,8 +10,11 @@ function sync (patterns) {
const basicAttachmentMap = {
single: sync(["src/base/single/**/*.js"]),
layer: sync(["src/base/layer/**/*.js"]),
pane: sync(["src/base/1.pane.js"]),
button_group: sync(["src/base/combination/group.button.js"]),
buttons: sync(["src/case/button/**/*.js"]),
checkboxes: sync(["src/case/checkbox/**/*.js"]),
combos: sync(["src/case/combo/**/*.js"]),
editors: sync(["src/case/editor/**/*.js"]),
triggers: sync(["src/case/trigger/**/*.js"]),
@ -26,8 +29,11 @@ const basicAttachmentMap = {
module.exports = {
single: basicAttachmentMap.single,
layer: basicAttachmentMap.layer,
pane: basicAttachmentMap.pane,
button_group: basicAttachmentMap.button_group,
buttons: basicAttachmentMap.buttons,
checkboxes: basicAttachmentMap.checkboxes,
combos: basicAttachmentMap.combos,
editors: basicAttachmentMap.editors,
triggers: basicAttachmentMap.triggers,

3
webpack/webpack.prod.js

@ -34,8 +34,11 @@ module.exports = merge.smart(common, {
core: attachments.coreJs,
resource: attachments.resource,
"lib/single": components.single,
"lib/layers": components.layer,
"lib/pane": components.pane,
"lib/button_group": components.button_group,
"lib/buttons": components.buttons,
"lib/checkboxes": components.checkboxes,
"lib/combos": components.combos,
"lib/editors": components.editors,
"lib/triggers": components.triggers,

Loading…
Cancel
Save