Skip to content

Instantly share code, notes, and snippets.

@lmosele
Last active May 7, 2017 19:23
Show Gist options
  • Save lmosele/c75285b3898418e3dca8c493b9fa089b to your computer and use it in GitHub Desktop.
Save lmosele/c75285b3898418e3dca8c493b9fa089b to your computer and use it in GitHub Desktop.
extremely simple config for basic sass projects
{
"name": "project",
"main": "index.js",
"scripts": {
"build-css": "node-sass --include-path scss src/styles/main.scss dist/css/main.min.css",
"watch-css": "nodemon -e scss -x \"npm run build-css\" "
},
"devDependencies": {
"node-sass": "^4.5.1",
"nodemon": "^1.11.0"
}
}
@lmosele
Copy link
Author

lmosele commented May 7, 2017

just create this file, run npm install and then run npm run watch-css on terminal. Just make sure you have a sass file to watch in src/styles/main.scss (or whatever you decide to change it to).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment