Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vukasin-nikodijevic/844b904ddbd71f217d28137043bec0a3 to your computer and use it in GitHub Desktop.
Save vukasin-nikodijevic/844b904ddbd71f217d28137043bec0a3 to your computer and use it in GitHub Desktop.
SassC + live rebuild for create-react-app
.
.
.
.
"scripts": {
"start": "npm run build-css & npm run watch-scss & npm run start:dev-server",
"start:dev-server": "NODE_PATH=src react-scripts start",
"build": "NODE_PATH=src react-scripts build",
"test": "NODE_PATH=src react-scripts test --env=jsdom",
"build-css": "sassc -I ./src ./src/index.scss ./src/index.css",
"watch-scss": "nodemon -e scss -x \"npm run build-css\""
}
.
.
.
.
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment