Open armpogart opened 7 years ago
I guess it's something related to newline character (unix style vs CRLF), what newline ending does this plugin use on Windows and how can we change it?
Would you mind setting up a sample repository to illustrate your issue? That will make it easier to debug and help.
I have a workflow where one gulp task compiles nunjucks templates (with the help of this plugin) and outputs them to temporary folder and then other task uses gulp-useref to replace build blocks (for example I have css build block that must be replaced with combined and minified css file).
The problem is useref doesn't do it's job, but it's not useref problem. Everything is working fine with plain html files, but after this plugin renders html, useref is not doing its' job. The most strange thing is that when I manually open
.html
file in temporary folder, delete newline before build block (there's a newline there) and add it again (simply pressing enter) and run the useref task again, it does it's job. There is a feeling that there's some problem with newline, or there's a hidden character there....