- Point all your resources to local
node_modules/
inindex.html
- add
!node_modules
in.surgeignore
- Push and pray to hakathon gods that no one messes with your repos again.
Created
May 14, 2016 05:32
-
-
Save VikramTiwari/a253d73c8b2b9698f19198f8135f548c to your computer and use it in GitHub Desktop.
angualrattack-2015-surge-issue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please don't do this. The
node_modules
directory can become large very quickly often comprising thousands of files. When hundreds of people are competing with thousands of file descriptors all at once things don't work reliably. This isn't good for your users either because npm packages are not typically optimized for distribution on the web.Here is a good guide that may help with setting up a project. http://blog.keithcirkel.co.uk/how-to-use-npm-as-a-build-tool/