sourcebitsllc / chocolatechip-ui

Mobile Web App Framework
www.chocolatechip-ui.com
MIT License
617 stars 88 forks source link

Github for windows converts line feeds to \r\n, which breaks the build #40

Closed sandwichfeet closed 10 years ago

sandwichfeet commented 10 years ago

The string-replace task grunt task cannot locate the iife headers to remove them as it is looking for \n and not \r\n .

Not sure if this is the best way to fix for all platforms, but adding an extra option to the 2 string-replace tasks fixes it for me.

    options: {
       replacements: [{
           pattern: /\r/img,
           replacement: ''
      },