Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The usefulness of the "changed" plugin #2

Open
ghost opened this issue Feb 3, 2015 · 6 comments
Open

The usefulness of the "changed" plugin #2

ghost opened this issue Feb 3, 2015 · 6 comments

Comments

@ghost
Copy link

ghost commented Feb 3, 2015

Hi Juan!

Could you explain more clearly the usefulness of the "changed" plugin?

What would be the purpose? Why would anyone want to monitor the files that have been compiled?

//only pass unchanged *main* files and *all* the partials
.pipe(changed('dist', {extension: '.html'}))

Thank you for publishing this package :)

@juanfran
Copy link
Owner

juanfran commented Feb 3, 2015

Hi @joelcipriano

it is for performance, if your project has dozens of .jade the compilation could take too long

@ghost
Copy link
Author

ghost commented Feb 8, 2015

Sorry @juanfran, but I still do not understand. If only .jade files are monitored for changes, why listening .html files that already have been compiled?

@juanfran
Copy link
Owner

juanfran commented Feb 9, 2015

bacause gulp-changed checks the last modified date, if example.html is less recent than example.jade then gulp-changed pass through example.jade

sorry if I haven't explained well

@ghost
Copy link
Author

ghost commented Apr 28, 2015

Ok. Got it!

Have you tested with more than 100 files? I used this solution in a project with 62 pages and 108 includes. The CPU usage hit the sky and the compilation stopped working :/

@juanfran
Copy link
Owner

juanfran commented May 1, 2015

at the beginning or after a change? I have a project with many files too and it works well https://github.com/taigaio/taiga-front/blob/master/gulpfile.js

@siliconalchemy
Copy link

This has gone a little off-topic, but I get the same 'hanging'. Using gulp-changed works fine for me, that's not an issue. But if I use jade-inheritance on watched include files, which triggers recompile of 65 jade files it takes several minutes and hangs gulp at 100% cpu. Most of that time is spent in futex by an strace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants