How do I pass npm parameters to dotnet publish?

社会主义新天地 提交于 2019-12-07 16:43:06

问题


Long story short, private npm registry, corporate network, can't download from github.

I need to pass

--no-optional 

to the

npm install 

that

dotnet publish

executes as part of

Target "PublishRunWebpack: (TargetId:162)"

Any ideas? MSDN documentation @ https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-publish?tabs=netcore21 is super unhelpful.

Using dotnet core 2.1, if it matters :)

Thanks!


回答1:


I swear, StackOverflow's greatest power is that the odds of figuring out your problem increase exponentially as soon as you ask the question.

The

PublishWebPack

is part of the csproj. Unload / edit / modify to your heart's content!



来源:https://stackoverflow.com/questions/52740496/how-do-i-pass-npm-parameters-to-dotnet-publish

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!