Skip to content

Instantly share code, notes, and snippets.

@VikramTiwari
Created May 14, 2016 05:32
Show Gist options
  • Save VikramTiwari/a253d73c8b2b9698f19198f8135f548c to your computer and use it in GitHub Desktop.
Save VikramTiwari/a253d73c8b2b9698f19198f8135f548c to your computer and use it in GitHub Desktop.
angualrattack-2015-surge-issue
  • Point all your resources to local node_modules/ in index.html
  • add !node_modules in .surgeignore
  • Push and pray to hakathon gods that no one messes with your repos again.
@sintaxi
Copy link

sintaxi commented May 14, 2016

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment