0.0.1 • Published 9 years ago

fe-component v0.0.1

Weekly downloads
1
License
ISC
Repository
gitlab
Last release
9 years ago

组件 资源形态:

css js img

  • 如果打包肯定会造成最后的冗余

  • 如果不打包, 需要处理 node_modules 内的依赖分析, css 需要 引入, img 需要处理依赖分析


可能比较好的做法是, component 不处理 complile 直接暴露出 src, 在业务框架里通过关键字 node_modules/fe-* 来配置 loader 处理各种依赖

basejs :

react-css-modules

externals: {
    "react": 'React',
    "react-dom": "ReactDOM",
    "react-router": "ReactRouter",
    'history': "History",
    'redux': 'Redux',
    'react-redux': 'ReactRedux'
  },
  1. stylus

@TODO

  • fe-button
  • fe-dialog
  • fe-icon
  • fe-input
  • fe-table