|
|
|
|
|
by jjeaff
2365 days ago
|
|
This is what I was going to suggest. I am working on moving towards react and some other better practices for our current jQuery/spaghetti code front end and I needed to be able to handle multiple entrypoints and types. I messed around with webpack and create react app and gulp and several other things for days before coming across parcel. It just works. Want to build your react app? Just tell parcel where your index.js is and it will see your react and react dom imports and just build it. No config needed. Want to do react in typescript? Just change your entrypoints to index.ts. Done. Even handled the yarn add commands for you. This allowed me to easily have a few different react entrypoints as well as just a few random .ts files for use on pages that aren't built in react yet and then I just watch or build using a wildcard and it takes care of it all. So far, I'm a big fan. |
|