allen-ui

1.0.1 • Public • Published

开发文档

  • 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特性

Readme

Keywords

none

Package Sidebar

Install

npm i allen-ui

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

128 kB

Total Files

11

Last publish

Collaborators

  • allenzhaochen