SHARE
TWEET

Untitled

a guest Oct 10th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var gulp       = require('gulp');
  2. var sass       = require('gulp-sass');
  3. var cleanCSS   = require('gulp-clean-css');
  4. var PRODUCTION = require('yargs').argv.prod;
  5. var gulp_if    = require('gulp-if');
  6.  
  7. sass.compiler = require('node-sass');
  8.  
  9. gulp.task('sass', function () {
  10.     return gulp.src('assets/scss/bundle.scss')
  11.     .pipe(sass().on('error', sass.logError))
  12.     .pipe(gulp_if(PRODUCTION,cleanCSS({compatibility: "ie8"})))
  13.     .pipe(gulp.dest('dist/assets/css'));
  14. });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top