How to deploy Node.js application with deep node_modules structure on Windows?

前端 未结 8 1220
北荒
北荒 2020-11-30 17:11

I\'ve run into a curious issue - apparently some Node.js module have so deep folder hierarchies that Windows copy command (or PowerShell\'s C

8条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 18:04

    1) During release build, You can prevent Visual studio scanning these files / folder by setting the folder properties as a Hidden folder (JUST set it to node_modules). Reference: http://issues.umbraco.org/issue/U4-6219#comment=67-19103

    2) You can exclude files or folder that are published during packaging by including following XML node in the CsProject file.

    
      ...
      bin\
       42016,41999,42017,42018,42019,42032,42036,42020,42021,42022
      File1.aspx;File2.aspx
      Folder1;Folder2
    
    

提交回复
热议问题