Skip to content

Instantly share code, notes, and snippets.

@productioncoder
Created August 31, 2018 14:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save productioncoder/759ba3ebdc6e9dc46b46802d0689dc1f to your computer and use it in GitHub Desktop.
Save productioncoder/759ba3ebdc6e9dc46b46802d0689dc1f to your computer and use it in GitHub Desktop.
Update package.json to support SCSS
"scripts": {
"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",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment