Home | 简体中文 | 繁体中文 | 杂文 | 打赏(Donations) | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 知乎专栏 | Search | Email

4.6. Sass Compilation

Using gulp-sass

		
npm install --save-dev gulp-sass
		
		

gulpfile.js:

		
// including plugins
var gulp = require('gulp');
var sass = require("gulp-sass");
 
// task
gulp.task('compile-sass', function () {
    gulp.src('./Sass/one.sass') // path to your file
    .pipe(sass())
    .pipe(gulp.dest('path/to/destination'));
});
		
		

Run:

		
gulp compile-sass