Skip to content

Commit

Permalink
Add variations on start and build scripts for Windows systems
Browse files Browse the repository at this point in the history
These scripts set an environment variable before invoking
react-app-rewired. The syntax for doing this is different on Windows
systems. Two new scripts are defined to make these actions available to
Windows users.
  • Loading branch information
mint-thompson committed Mar 22, 2024
1 parent db32571 commit dcc7bb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
},
"scripts": {
"start": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired start",
"start:win": "set NODE_OPTIONS=--openssl-legacy-provider && react-app-rewired start",
"build": "NODE_OPTIONS=--openssl-legacy-provider react-app-rewired build",
"build:win": "set NODE_OPTIONS=--openssl-legacy-provider && react-app-rewired build",
"serve-build": "node scripts/serve-build.js",
"lint": "eslint \"./src/**/*.js\"",
"lint-fix": "eslint \"./src/**/*.js\" --fix",
Expand Down

0 comments on commit dcc7bb1

Please sign in to comment.