Skip to content

Instantly share code, notes, and snippets.

@ebectar
Last active September 27, 2018 22:55
Show Gist options
  • Save ebectar/b1a2c437835a2ebd701a5544ba35a826 to your computer and use it in GitHub Desktop.
Save ebectar/b1a2c437835a2ebd701a5544ba35a826 to your computer and use it in GitHub Desktop.

Setting up a new project using SaSS with gulp-sass

Prereqs

  • Install SaSS npm install -g sass
  • Install gulp npm install -g gulp

Create a new project

  • Navigate into directory
  • Initalize new package.json npm init
  • Create dependencies for gulp and gulp-sass npm install --save-dev gulp gulp-sass
  • Create gulpfile.js touch gulpfile.js

Setup gulp tasks in gulpfile.js

  • Require gulp-sass and gulp
    var gulp = require('gulp');
    var sass = require('gulp-sass');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment