Cleanup dependencies and build logic #2
Merged
maxime.batista
merged 6 commits from clement.freville2/Application:dep/cleanup
into dev
2 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'clement.freville2/Application:dep/cleanup'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Create React App works, but it can be painfully slow. This PR first replaces CRA with ViteJS, a build tool based on Rollup. The Jest testing framework has been replaced with Vitest, which integrate smoothly with ViteJS.
A few notes about the config:
.jsx
files. Instead of renaming every file containing React components, I just specified it in the ViteJS config.package.json
file. This includes the removal of electron (a real desktop app would require a lot of work, see Tauri if you are interested in), react-native (it's either ReactJS or ReactNative but not both)public
directory. Usingrequire
to include images really depends on the build tool and not a static file server.I recommend that you do your own testing to verify that it suits your needs.
89780605e1
into dev 2 years ago