Fix CRLF issues when building on Windows.

This commit is contained in:
ccd0 2015-01-20 01:22:52 -08:00
parent 7c93cf3b86
commit 3cd715273a
2 changed files with 3 additions and 1 deletions

2
.gitattributes vendored
View File

@ -1,6 +1,8 @@
# Auto detect text files and perform LF normalization
* text=auto
builds/* -text
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union

View File

@ -2,7 +2,7 @@ module.exports = (grunt) ->
grunt.util.linefeed = '\n'
importHTML = (filename) ->
"(innerHTML: #{JSON.stringify grunt.file.read("src/General/html/#{filename}.html").replace(/^\s+|\s+$</gm, '').replace(/\n/g, '')})"
"(innerHTML: #{JSON.stringify grunt.file.read("src/General/html/#{filename}.html").replace(/^ +| +$</gm, '').replace(/\r?\n/g, '')})"
html = (template) ->
parts = template.split /([\$&@]){([^}`]*)}/