Skip to content

Instantly share code, notes, and snippets.

@irunatbullets
Created August 2, 2017 05:08
Show Gist options
  • Select an option

  • Save irunatbullets/682272e6dde27a9b755812cb0755d2e8 to your computer and use it in GitHub Desktop.

Select an option

Save irunatbullets/682272e6dde27a9b755812cb0755d2e8 to your computer and use it in GitHub Desktop.
create-react-app package.json with sass and normalise
{
"name": "Project Name",
"version": "0.1.0",
"private": true,
"dependencies": {
"node-sass-chokidar": "0.0.3",
"normalize-scss": "^7.0.0",
"npm-run-all": "^4.0.2",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-scripts": "1.0.10"
},
"scripts": {
"build-css": "node-sass-chokidar src/ -o src/ --include-path node_modules/normalize-scss/sass/",
"watch-css": "npm run build-css && node-sass-chokidar src/ -o src/ --include-path node_modules/normalize-scss/sass/ --watch --recursive",
"start-js": "react-scripts start",
"start": "npm-run-all -p watch-css start-js",
"build": "npm run build-css && react-scripts build",
"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