Replace webpack with only esbuild

reduce node_modules size to only 18M
This commit is contained in:
2022-12-04 17:08:06 +08:00
parent b808d4be99
commit c09e230972
34 changed files with 602 additions and 37643 deletions

4
web/build.sh Executable file
View File

@@ -0,0 +1,4 @@
rm -rf build
cp -raf public build
./node_modules/.bin/esbuild src/index.jsx --bundle --minify --outfile=build/msw-open-music.js --sourcemap
cat public/index.html | sed "s/%PUBLIC_URL%/$PUBLIC_URL/" > build/index.html