mx-design-cli icon indicating copy to clipboard operation
mx-design-cli copied to clipboard

@mx-deisgn/cli is a React web project and React component library build tool, through @mx-deisgn/cli can quickly start the development environment, package business code and component library code(@m...

Results 2 mx-design-cli issues
Sort by recently updated
recently updated
newest added

## 理论基础 简单说,打包组件库,并不是打包,而是转译代码,平常我们说打包,例如webpack,是将我们的业务代码打包为一个文件,或者split chunk为多个文件(每个页面只加载这个页面需要的资源,比如js)。 而打包组件库,我们因为要做按需加载,也就是每个文件夹内其实是一个组件,比如整个项目的目录如下: ``` src -- Button -- index.ts -- xxx -- Modal -- index.ts -- xxx index.ts // 导出所有组件 ``` 其中Button文件夹,我们只需要转译为js,然后用户只需要 ``` import { Button } from...

documentation

- Basic knowledge Simply put, packaging a component library is not packaging, but translating code. Usually we say packaging, such as webpack, is to package our business code into one...