Publishing Angular2SPA includes node_modules #1267

Closed
opened 2025-08-09 17:19:29 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @MikeHook on 11/14/2016

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.

*Originally created by @MikeHook on 11/14/2016* 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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#1267
No description provided.