use cross-env for windows build

This commit is contained in:
Sanster 2022-03-24 21:48:45 +08:00
parent 1c997991e4
commit c3157b4e15

View File

@ -31,14 +31,12 @@
"scripts": {
"dev": "run-p watch:css react-scripts:start",
"build": "run-s build:css react-scripts:build",
"build:windows": "run-s build:css react-scripts:winbuild",
"test": "react-scripts test",
"eject": "react-scripts eject",
"build:css": "cross-env TAILWIND_MODE=build NODE_ENV=production postcss src/styles/tailwind.css -o src/styles/index.css",
"watch:css": "cross-env TAILWIND_MODE=watch NODE_ENV=development postcss src/styles/tailwind.css -o src/styles/index.css --watch",
"react-scripts:start": "delay 5 && react-scripts start",
"react-scripts:build": "GENERATE_SOURCEMAP=false react-scripts build",
"react-scripts:winbuild": "set \"GENERATE_SOURCEMAP=false\" && react-scripts build"
"react-scripts:build": "cross-env GENERATE_SOURCEMAP=false react-scripts build"
},
"eslintConfig": {
"extends": "react-app"