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 d278e4009d
commit 5271c12525
34 changed files with 534 additions and 27454 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