use cross-env for windows build
This commit is contained in:
parent
1c997991e4
commit
c3157b4e15
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user