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

Order of Injected Files (with wildcard paths) is not Stable/Deterministic #220

Open
jongunter opened this issue Mar 7, 2017 · 2 comments

Comments

@jongunter
Copy link

First off, I just want to say, great work on this plugin! I've been using it for almost a year now and it's excellent.

Recently, I've noticed, as my application has grown to include many injected JS/CSS files, that the ordering of files is not pure/stable/deterministic. In other words, if I run the the gulp-inject twice in the exact same setup (exact same files with same contents), my files will be injected with a different order each time, mostly for files/folders in my stream that use wildcards in their names.

While it seems like a trivial issue to most, the specific build setup in my enterprise/legacy environment calls gulp-inject anytime a file is changed. This results in a bunch of HTML files constantly appearing as "changed" on my version control, even though the actual files being injected haven't changed, just the order.

It seems weird that files would be injected in different order given exact same context/state in the file system? This may be NPM/gulp issue? If someone could provide more insight here, I would certainly appreciate it.

@niels1voo
Copy link

+1

@jake-lambert-volusion
Copy link

Did you ever figure a way around this?

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

3 participants