I am trying to set up a Vagrant dev environment that I can re use. I am having a lot of problems using NPM and specifically Browserify.
Whenever I run browserify to bundle js files. It works ok the first time after git cloning my repo, but if I then edit the files on my windows machine (or my mac). I start getting errors in javascript files:
Uncaught SyntaxError: Unexpected token ILLEGAL
I am sure this is to do with line endings but have so far been unable to fix it. I have tried setting git config settings as follows:
git config --global core.autocrlf false
Have tried various values for the above command with no luck. I also tried setting eol for file types within .gitattributes like this:
*.js text eol=lf
...but am now getting to the point where I am a bit lost. Has anyone experienced similar issues and had any luck with a solution?