Replace create-react-app with vite

create-react-app seems to struggle a bit [1] and many folks are
recommending vite as an alternative, as that project is more active.
For me the reason to switch to vite is to reduce dependencies and speed
up the build process.

Replacing create-react-app with vite reduce the number of dependencies
from 1762 to 444.

I was also quite surprised, by how small the actual diff in this commit
is. From that perspective there is almost no discernible difference
between the two tools.

[1]: https://github.com/reactjs/react.dev/pull/5487#issuecomment-1409720741
This commit is contained in:
ZauberNerd
2023-07-07 13:36:32 +02:00
parent 9a69273ce4
commit a3da33d824
11 changed files with 79 additions and 130 deletions

View File

@@ -14,8 +14,7 @@ COPY ./app/tsconfig.json ./
# Install Node.js dependencies
RUN npm install
# Copy craco.config.js, public, and src directories
COPY ./app/craco.config.js ./craco.config.js
# Copy public, and src directories
COPY ./app/public ./public
COPY ./app/src ./src