Skip to content

Instantly share code, notes, and snippets.

@chriseppstein
Created September 11, 2015 17:23
Show Gist options
  • Select an option

  • Save chriseppstein/d7be56e21b216275bd86 to your computer and use it in GitHub Desktop.

Select an option

Save chriseppstein/d7be56e21b216275bd86 to your computer and use it in GitHub Desktop.
var gulp = require("gulp");
var sass = require("gulp-sass");
var Eyeglass = require("eyeglass").Eyeglass;
var eyeglass = new Eyeglass({
// ... node-sass options
importer: function(uri, prev, done) {
done(sass.compiler.types.NULL);
}
});
// Disable import once with gulp until we
// figure out how to make them work together.
eyeglass.enableImportOnce = false
gulp.task("sass", function () {
gulp.src("./sass/**/*.scss")
.pipe(sass(eyeglass.sassOptions()).on("error", sass.logError))
.pipe(gulp.dest("./css"));
});
{
"devDependencies": {
"eyeglass": "^0.6.2",
"gulp": "^3.9.0",
"gulp-sass": "^2.0.4",
"susy": "^2.2.5"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment