dilanx / craco

Create React App Configuration Override, an easy and comprehensible configuration layer for Create React App.
https://craco.js.org
Apache License 2.0
7.43k stars 499 forks source link

Can I use CRA to make a library in React? #484

Closed vinimarcili closed 1 year ago

vinimarcili commented 1 year ago

If I have a project using CRA can I somehow reconfigure webpack so it doesn't need an index.html and just export the components to be published to NPM? I couldn't find this anywhere, I just want to know if it's possible and if so how to do it