GithubHelp home page GithubHelp logo

Comments (2)

jmorille avatar jmorille commented on July 20, 2024

The common use case is when you write some pattern for sass, and you want to copy the unmangement files...
like this sample, I believe that could be very usefull for many people and a good place to be.

var config_cp = {
  src_patch: ['**', notGlob(src.sass), notGlob(src.bower_components)]
}

gulp.task('cp', function (cb) {
  var DEST_DIR = path.build_generated;
  return gulp.src(config_cp.src_patch, { cwd:path.app,  base: path.app})
    .pipe(cache('cping', {optimizeMemory: true}))
    .pipe(changed(DEST_DIR))
    .pipe(debug({title: 'changed:'}))
    .pipe(gulp.dest(DEST_DIR));
});


gulp.task('sass', function () {
  var DEST_DIR = path.build_generated;
  var SASS_OPTS = prod ? {outputStyle: 'compressed'} : {};
  return gulp.src(src.sass, {cwd: path.app,  base: path.app  })
    .pipe(cache('sassing', {optimizeMemory: true}))
    .pipe(changed(DEST_DIR, {extension: '.css'}))
    .pipe(debug({title: 'changed:'}))
    .pipe(sass(SASS_OPTS))
    // Pass the compiled sass through the prefixer with defined
    .pipe(prefix(
      'last 2 version', 'safari 5', 'ie 8', 'ie 9', 'opera 12.1', 'ios 6', 'android 4'
    ))
    .pipe(gulp.dest(DEST_DIR));
});

from gulp-util.

yocontra avatar yocontra commented on July 20, 2024

You should publish a module that does this, gulp-util is deprecated and won't have anything added to it. After gulp 4 we will recommend people don't use it.

from gulp-util.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.