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()))