OLD | NEW |
(Empty) | |
| 1 /*! |
| 2 * This file is part of help.eyeo.com. |
| 3 * Copyright (C) 2017 Eyeo GmbH |
| 4 * |
| 5 * help.eyeo.com is free software: you can redistribute it and/or modify |
| 6 * it under the terms of the GNU General Public License as published by |
| 7 * the Free Software Foundation, either version 3 of the License, or |
| 8 * (at your option) any later version. |
| 9 * |
| 10 * help.eyeo.com is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 * GNU General Public License for more details. |
| 14 * |
| 15 * You should have received a copy of the GNU General Public License |
| 16 * along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. |
| 17 */ |
| 18 |
| 19 const gulp = require('gulp'); |
| 20 const gutil = require('gulp-util'); |
| 21 const sass = require('gulp-sass'); |
| 22 const postcss = require('gulp-postcss'); |
| 23 const scss = require('postcss-scss'); |
| 24 const autoprefixer = require('autoprefixer'); |
| 25 |
| 26 gulp.task('css', function() { |
| 27 return gulp.src('./static/scss/main.scss') |
| 28 .pipe(postcss([autoprefixer()], {syntax: scss}).on('error', guti
l.log)) |
| 29 .pipe(sass().on('error', gutil.log)) |
| 30 .pipe(gulp.dest('./static/css')); |
| 31 }); |
| 32 |
| 33 gulp.task('watch', function() { |
| 34 gulp.watch('./static/scss/**/*.scss', ['css']); |
| 35 }); |
| 36 |
| 37 gulp.task('default', ['css', 'watch']); |
OLD | NEW |