-
Notifications
You must be signed in to change notification settings - Fork 518
Publishing Angular2SPA includes node_modules #429
Comments
This is because the template you use is set up with server side rendering. |
As @MrCrimp said "node_modules" folder is needed for pre-rendering, just remove the "asp-prerender-module" tag from the MVC view and it will work (as you already know 😄) |
You are all correct - |
Thanks for clearing that up guys :) |
Update: Deploying If you get the latest |
AFAIK the node_modules should not be needed as they are precompiled into the vendor.js file.
I removed them from my project by taking the folder out of the publishOptions include list in project.json. However the site only works then if the asp-prerender tag is also removed from the home page markup.
Also tried adding the aspnet-prerendering module to the webpack.config.vendor.js list but then the compiled javascript didn't run.
The text was updated successfully, but these errors were encountered: