Current Path : /var/www/www-root/data/www/monolith-realty.ru/ |
Current File : /var/www/www-root/data/www/monolith-realty.ru/gulpfile.js |
"use strict"; var gulp = require("gulp"); var sourcemap = require("gulp-sourcemaps"); var sass = require ('gulp-sass') (require ('sass')); var postcss = require("gulp-postcss"); var autoprefixer = require("autoprefixer"); var server = require("browser-sync").create(); gulp.task("css", function () { return gulp.src("local/templates/monolitsochi/styles/sass/style.scss") .pipe(sourcemap.init()) .pipe(sass()) .pipe(postcss([ autoprefixer() ])) .pipe(sourcemap.write(".")) .pipe(gulp.dest("local/templates/monolitsochi/styles/css-gulp")) }); gulp.task("server", function () { server.init({ server: "monolitsochi", notify: false, open: false, cors: true, ui: false }); gulp.watch("local/templates/monolitsochi/styles/sass/**/*.{scss,sass}", gulp.series("css")); }); gulp.task("start", gulp.series("css", "server"));