0.0.4 • Published 3 years ago
@hugh-onf/components-lib v0.0.4
Usage
yarn add @hugh-onf/components-libMain entry
import "@hugh-onf/components-lib/dist/style.css";Imports
import { Button } from "@hugh-onf/components-lib";Notes
- Because of zero deps strategy,
antdtypings not included. So if we need typings forantd, we need to installyarn add antdon the consumer projects - The bundle size is still big and it can be improved by
- Importing the override components LESS files only not the whole AntD CSS
- Optional or not sure if it helps if we configure it to build a file per component, for example
Button.jsinstead of a bigindex.es.js, and only import by files. Might not worth it because the ES bundle should support tree shaking on the consumer - maybe need to verify that