aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
blob: 0ceafcd3684749ba590b504f792fdfbfcaaee7ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
var gulp        = require("gulp");
var sass        = require("gulp-sass");
var rename      = require('gulp-rename');

gulp.task('sass', function () {
    return gulp.src(['./**/sass/*.scss', '!./node_modules/**/*', '!./m4/**/*'])
        .pipe(sass({
            outputStyle: 'nested',
            precision: 5,
            onError: function (err) {
                notify().write(err);
            }
        }))
        .pipe(rename(function (path) {
            path.dirname += "/../";
        }))
        .pipe(gulp.dest('./'))
});

gulp.task('default', ['sass']);