Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

4.9. 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