Comments (7)
This plugin solve this issue
https://www.npmjs.com/package/gulp-dependents
from gulp-sass.
@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.
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.
Then use gulp-newer or gulp-changed.
EDIT actually, this has the same problem. sorry!
from gulp-sass.
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.
Apologies, I did in fact post this issue to the wrong plugin.
from gulp-sass.
@ShaneHowell just found gulp-sass-graph
from gulp-sass.
Related Issues (20)
- gulp-load-plugins can't not use gulp-sass5 HOT 2
- Could you help update node-sass? HOT 2
- Replace deprecated node-sass with officially supported dart-sass HOT 1
- Dart SASS Options not Working HOT 7
- nevermind
- The following tasks did not complete: sass - Did you forget to signal async completion? HOT 1
- Migrate to the new dart-sass JavaScript API HOT 4
- Quiet option HOT 2
- Can't find stylesheet to import in monorepo HOT 1
- Errors should emit error event HOT 2
- How to include separate css without file concatenation? HOT 2
- Please upgrade ansi-regex to 6.0.1
- 'importers' settings not working to work with '~' replacement, have to choose @mr-hope/gulp-sass
- Why can't I use @use with this? HOT 2
- Inline comments removed after compilation
- Unable to install with ancient version of node.
- support @use
- Wrong autocomplete for outputStyle in vscode
- `render()` and `renderSync()` are deprecated for the `sass` package
- Passing includePath as an array
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gulp-sass.