TouchAI
2/6/2018 - 7:15 PM

gulp

gulp

https://github.com/Pestov/essential-gulp-plugins

gulp-autoprefixer
gulp-minify-css
gulp-browser-sync
gulp-imagemin
imagemin-pngquant
gulp-uglify
gulp-sass
gulp-sourcemaps
gulp-rigger  импортировать один файл в другой //= footer.html
gulp.task('browser-sync', function() {
    browserSync({
        server: {
            baseDir: '.'
        },
        notify: false
    });
});

gulp.task('watch', ['browser-sync', 'sass'], function() {
    gulp.watch('./**/*.scss', ['sass']);
    gulp.watch('./**/*.html', browserSync.reload);
    gulp.watch('./**/*.css', browserSync.reload);
    gulp.watch('./js/**/*.js', browserSync.reload);
});
var gulp = require('gulp');
var sass = require('gulp-sass');

gulp.task('sass', function() {
    gulp.src('./sass/**/*.scss')
        .pipe(sass().on('error', sass.logError))
        .pipe(gulp.dest('./css'));
});

gulp.task('sass:watch', function() {
    gulp.watch('./sass/**/*.scss', ['sass']);
});