From 0ecf7be4a3738e9c70bee404491f0238347c4d55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?benjamin=20melan=C3=A7on?= Date: Fri, 26 Apr 2024 16:28:05 -0400 Subject: [PATCH] Make gulpfile aestheticaly more like gulpfile in ZURB template --- gulpfile.babel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gulpfile.babel.js b/gulpfile.babel.js index da609f4..97df2a3 100644 --- a/gulpfile.babel.js +++ b/gulpfile.babel.js @@ -23,10 +23,10 @@ const sassLint = require('gulp-sass-lint'); // Load all Gulp plugins into one variable. const $ = plugins(); -// Check for --production flag. +// Check for --production flag const PRODUCTION = !!(yargs.argv.production); -// Load settings from config.yml. +// Load settings from config.yml function loadConfig() { const unsafe = require('js-yaml-js-types').all; const schema = yaml.DEFAULT_SCHEMA.extend(unsafe); @@ -48,7 +48,7 @@ gulp.task('default', ); // Delete the compiled js and css. -// This happens every time a build starts. +// This happens every time a build starts function clean(done) { rimraf(PATHS.dist, done); } @@ -67,7 +67,7 @@ function sassBuild() { .pipe(sass({ includePaths: PATHS.foundationScss }) - .on('error', $.sass.logError)) + .on('error', $.sass.logError)) .pipe(postcss(postCssPlugins)) .pipe($.if(PRODUCTION, $.cleanCss({ compatibility: 'ie11' }))) .pipe($.if(!PRODUCTION, $.sourcemaps.write()))