This can sometimes cause gulp-concat to produce a different file (which in turn causes gulp-rev to produce a different hash), even when the source files are unchanged.
The long term solution for this is obviously to move away from concatenating scripts, and to start using modules and bundler such as webpack.
As a short term fix, an attempt was made to use gulp-sort to reorder the streams, however this was rolled back because it broke the build.
The order of gulp streams is not guaranteed (see https://github.com/gulpjs/gulp/issues/687, and here).
This can sometimes cause
gulp-concat
to produce a different file (which in turn causesgulp-rev
to produce a different hash), even when the source files are unchanged.The long term solution for this is obviously to move away from concatenating scripts, and to start using modules and bundler such as
webpack
.As a short term fix, an attempt was made to use
gulp-sort
to reorder the streams, however this was rolled back because it broke the build.