-
Notifications
You must be signed in to change notification settings - Fork 170
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
An option for line endings, don't enforce it #20
Comments
The default should be empty instead of a new line. |
In your Gruntfile.js add the following line: grunt.util.linefeed = '\n'; That will override the default (environment based) line endings for all tasks that use the grunt configuration to determine what line endings to use. |
The |
We're having trouble with this on Windows. Using (as of 2014-04-02) latest versions of everything:
Some debugging has shown that We've debugged it by using the As far as we can tell, the problem is the call-chain |
@levacic! Very impressive sleuthing. That is what's causing this to happen. We ran into a very similar problem recently on Uglify. I think this might be worthwhile to bring up on the main Grunt repo. I think it's undesirable that we normalize the line feeds of the options since we process them all as templates. |
I use exclusively LF line endings in all of my files. However I develop on Windows, so grunt concat always joins the files with CRLF, even if they are all LF.
Can there be either an option to choose which line endings I want, or perhaps concat could detect line endings in src files and use that?
The text was updated successfully, but these errors were encountered: