From: XhmikosR Date: Sun, 9 Mar 2014 07:49:20 +0000 (+0200) Subject: Enforce Unix line endings. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ab53c89741a592bfa08fda956ad74d37a7a74ab7;p=html-minifier.git Enforce Unix line endings. --- diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9619ad4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Enforce Unix newlines +*.css text eol=lf +*.html text eol=lf +*.js text eol=lf +*.json text eol=lf +*.md text eol=lf +*.yml text eol=lf diff --git a/Gruntfile.js b/Gruntfile.js index 6e951b3..07675a4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,6 +1,9 @@ module.exports = function(grunt) { 'use strict'; + // Force use of Unix newlines + grunt.util.linefeed = '\n'; + grunt.initConfig({ pkg: grunt.file.readJSON('package.json'),