vite-react-component-library-template

Vite template for building a React library component. TypeScript, SASS and Storybook.


Keywords
vite, template, react, library, react-component, react component, storybook, sass, fentos, fentosv
License
MIT
Install
npm install vite-react-component-library-template@0.0.4

Documentation

WIP 🛠

vite-react-component-library-template

Vite template for building a React library component. TypeScript, SASS and Storybook.

  • Vite React/TS/SASS/Storybook
  • Vite React component library build
  • Path aliases config in Vite/TS
  • React app to preview the component

TODO LIST 📝

  • Good docs, obviously

  • Add storybook

  • Css injection build -> Vite build doesn't load SASS module. Unable to find solution, no workaround worked

CSS injection build: Paused until working solution

vitejs/vite#1579

v0.0.1 -> CSS module (Button.module.css) -> Not working

v0.0.2 -> SCSS module (Button.module.scss) -> Not working

v0.0.3 -> CSS module (style.module.css) -> Not working

v0.0.4 -> SCSS module (style.module.scss) -> Not working