1.0.1 • Published 4 years ago

allen-ui v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

开发文档

  • npm run dev开发环境
  • npm run build开发环境
  • npm run deploy部署

开发环境

  • vscode、npm、webpack、eslint、prettier

FeatureList

  1. 输出umd格式文件,允许它和CommonJS/AMD/全局变量一起工作
  2. 组件库支持按需加载,需要babel配置babel-plugin-component插件
  3. babel7\corejs3\runtime垫片babel polyfill按需编译、不污染全局

踩坑记录

  1. Vue 配置为 externals,打包时候排除掉、需要使用者自己安装
//webpack.deploy.js
externals: {
    vue: {
      root: 'Vue',
      commonjs: 'vue',
      commonjs2: 'vue',
      amd: 'vue'
    }
  }

//packgage.json
peerDependencies: {
  "vue": ">2.6.10"
}

TODOList

  1. 利用rollUp提供esm包(webpack输出格式不支持esm)、方便使用者利用webpack tree shaking特性