Created
September 11, 2018 11:51
-
-
Save jayantbh/e61e630159bb2dbfa5d6d9070531a0cd to your computer and use it in GitHub Desktop.
Some useful package.json bits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"dependencies": { | |
"node-sass-chokidar": "^1.3.0", | |
"npm-run-all": "^4.1.3" | |
}, | |
"scripts": { | |
"test": "react-scripts test --env=jsdom", | |
"eject": "react-scripts eject", | |
"build-css": "node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/", | |
"watch-css": "npm run build-css && node-sass-chokidar --include-path ./src --include-path ./node_modules src/ -o src/ --watch --recursive", | |
"start-js": "react-scripts start", | |
"start": "npm-run-all -p watch-css start-js", | |
"build-js": "react-scripts build", | |
"build": "npm-run-all build-css build-js" | |
}, | |
"proxy": { | |
"/namespaced/path/": { // localhost:1234/namespaced/path/ -> https://actualdomain.xyz | |
"target": "https://actualdomain.xyz", | |
"changeOrigin": true, | |
"secure": false | |
}, | |
"/api/v1": { // localhost:1234/api/v1 -> https://actualdomain.xyz/api/v1 | |
"target": "https://actualdomain.xyz/api/v1", | |
"changeOrigin": true, | |
"secure": false | |
}, | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment