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

gulp-useref only works with CLRF line endings #258

Open
markushausammann opened this issue May 29, 2019 · 4 comments
Open

gulp-useref only works with CLRF line endings #258

markushausammann opened this issue May 29, 2019 · 4 comments

Comments

@markushausammann
Copy link

It should also work with LF endings.

@jonkemp
Copy link
Owner

jonkemp commented May 30, 2019

It does.

@markushausammann
Copy link
Author

Not in my experience.

@jonkemp
Copy link
Owner

jonkemp commented May 30, 2019

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

@markushausammann
Copy link
Author

It has been reported before: #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: build:css NOT working #130 (comment)) 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.

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

2 participants