Excluding the node_modules Folder in Visual Studio WebSite Projects
Posted by: Rick Strahls WebLog,
on 30 Oct 2016 |
View original | Bookmarked: 0 time(s)
If you're working on a client side project that includes an NPM folder with a large number of dependencies and you're using a WebSite Project in Visual Studio, you've probably found that this is a terrible combination out of the box. It results in very slow load times and/or file load errors.
What's the problem?
WebSite Projects (WSP) are a pure file representation on disk, so they show you all files, including the crazy large number of files in the node_modules folder which isn't excluded by default.