-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Option no-sort doesn't seem to work on gulp 5.0.0 #2784
Comments
I have tried using gulp-order plugin to fix the order in a pipe after gulp.src, however it doesn't seem to work either on v5.0.0, or has no effect at least. |
One final note I forgot to mention, the documentation says the option is "nosort" (no dash), I tried that and it didn't work on either v4.0.2 or v5.0.0. I found the dash option from other documentation. |
I'm seeing the same. When given an array of I never needed the "nosort" option with gulp 4.02. I also tried src options no-sort, nosort, and noSort without success. |
What were you expecting to happen?
Only changing between gulp v4.0.2 and v5.0.0 (all other plugins stay the same and latest versions).
Issue is only really a problem for JavaScript files where the order of the files being concat is vital for plugins that depend on others - like jQuery needing to be first.
I am using ESM gulpfile, as required by latest gulp-autoprefixer v9.0.0 now.
Using the following to keep the order of input sources unsorted (mainly required for JavaScript dependencies).
What actually happened?
Works as expected for gulp v4.0.2 with "no-sort" option, however array is still sorted when using v5.0.0 with same option.
Please give us a sample of your gulpfile
In this case the src is an array of files similar to the following, and need to be concat in the same order:
Only change needed to break is upgrading from gulp v4.0.2 to v5.0.0
Terminal output / screenshots
None
Please provide the following information:
node -v
): 20.11.0npm -v
): 10.5.1gulp -v
): 5.0.0Additional information
None
The text was updated successfully, but these errors were encountered: