0

I have a project that create once on linux at now I work on it on windows os and I have a command to minify assets file; my problem is "\r\n" in output create new line add cause to different files with previous version, for example if we have :

});console.log("test");

command output is :

});
console.log("test");

Can you help me?

masoud
  • 98
  • 1
  • 8

1 Answers1

0
  1. Your IDE should be able to set the line separator. At least Atom, IntelliJ, notepad++ and others support this feature.
  2. git itself has a feature to fix/change line feeds. See git-scm on autocrlf and this SO question and its answers.
boppy
  • 1,753
  • 12
  • 10