Skip to content

Instantly share code, notes, and snippets.

@jeromecoupe
Created December 2, 2020 10:30
Show Gist options
  • Save jeromecoupe/2d423e7b8a635410ec76933b89e35b58 to your computer and use it in GitHub Desktop.
Save jeromecoupe/2d423e7b8a635410ec76933b89e35b58 to your computer and use it in GitHub Desktop.
Minimal NPM script Sass
{
"name": "sass-npm-scripts",
"version": "1.0.0",
"author": "Jérôme Coupé",
"description": "Minimal Sass NPM scripts",
"main": "index.js",
"scripts": {
"build:styles": "sass --style=compressed src/scss/:dist/css/",
"watch:styles": "onchange src/scss/**/*.scss -- npm run build:styles",
"watch": "npm-run-all --parallel watch:**",
"build": "npm-run-all --parallel build:**"
},
"license": "MIT",
"devDependencies": {
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"sass": "^1.29.0"
}
}
@nhoizey
Copy link

nhoizey commented Dec 2, 2020

J'utilise sass --watch directement, je suppose que onchange est surtout intéressant pour surveiller de la même façon différents types de fichiers qui nécessitent différents builders.

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