gulp-useref
gulp-useref copied to clipboard
gulp-useref only works with CLRF line endings
It should also work with LF endings.
It does.
Not in my experience.
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
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.htmlon a file which usesbuild:cssI 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.