Code Monkey home page Code Monkey logo

Comments (7)

nucklearproject avatar nucklearproject commented on May 20, 2024 3

This plugin solve this issue
https://www.npmjs.com/package/gulp-dependents

from gulp-sass.

ShaneHowell avatar ShaneHowell commented on May 20, 2024 1

@quarterto IMO, no watch set up should have to recompile every file when only one file has changed. It may be fast but it would still shave off many seconds by only compiling changed files.

I've also tested it both ways. While libsass is fast, it's exponentially faster when only compiling changed files, especially on larger projects.

from gulp-sass.

apaleslimghost avatar apaleslimghost commented on May 20, 2024

If you use the built-in gulp.watch, when you change any of the files they are all recompiled. libsass is fast enough that this isn't really a problem.

gulp.watch('app/scss/*.scss', ['sass-watch']);
gulp.task('sass-watch', function() {
  return gulp.src('app/scss/*.scss')
    .pipe(sass(sassOptions))
    .pipe(gulp.dest('app/css'))
    .pipe(livereload());
});

from gulp-sass.

apaleslimghost avatar apaleslimghost commented on May 20, 2024

Then use gulp-newer or gulp-changed.

EDIT actually, this has the same problem. sorry!

from gulp-sass.

dlmanning avatar dlmanning commented on May 20, 2024

As @quarterto suggests, this is outside the domain of gulp-sass. gulp plugins are not supposed to be one-stop-shops for the entire build process. gulp-sass's only job is to allow the inclusion of node-sass in a build chain.

from gulp-sass.

ShaneHowell avatar ShaneHowell commented on May 20, 2024

Apologies, I did in fact post this issue to the wrong plugin.

from gulp-sass.

apaleslimghost avatar apaleslimghost commented on May 20, 2024

@ShaneHowell just found gulp-sass-graph

from gulp-sass.

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.