gulp-useref icon indicating copy to clipboard operation
gulp-useref copied to clipboard

gulp-useref only works with CLRF line endings

Open markushausammann opened this issue 6 years ago • 4 comments

It should also work with LF endings.

markushausammann avatar May 29 '19 19:05 markushausammann

It does.

jonkemp avatar May 30 '19 00:05 jonkemp

Not in my experience.

markushausammann avatar May 30 '19 09:05 markushausammann

It appears we are at an impasse then, unless you provide more information. Maybe you will find this helpful:

https://github.com/jonkemp/gulp-useref/blob/master/CONTRIBUTING.md#bug-reports

jonkemp avatar May 30 '19 13:05 jonkemp

It has been reported before: https://github.com/jonkemp/gulp-useref/issues/130

The current case I'm experiencing is the following:

  • build works on development machine
  • when running e.g. cat -e some.html on a file which uses build:css I see CLRF line endings
  • when running the same command in the staging/production environment I see LF line endings and the build doesn't work, transformations/replacements are not happening
  • if I change the line-endings during the build process (as described here: https://github.com/jonkemp/gulp-useref/issues/130#issuecomment-497097458) it works again

This clearly demonstrates that (under certain circumstances?) gulp-useref doesn't work with LF line endings but works with CLRF line endings.

markushausammann avatar May 31 '19 09:05 markushausammann