Skip to content

Commit e4d9974

Browse files
nul800sebastiaannikolajlauridsen
authored andcommitted
fix: prevent copying of the node_modules directory (#17331)
As noted in #16659, everything from `App_Plugins` is copied into the web output. This is unneeded and in the case of the `node_modules` directory unwanted behavior, these files are sources and not output that Umbracco needs to serve packages/extensions. The old behavior has led to many of the "path too long" errors we've been seeing while building extensions.
1 parent ab5b007 commit e4d9974

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Cms.Targets/buildTransitive/Umbraco.Cms.Targets.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<!-- Include App_Plugins content in output/publish directories -->
3333
<Target Name="IncludeAppPluginsContent" BeforeTargets="GetCopyToOutputDirectoryItems;GetCopyToPublishDirectoryItems">
3434
<ItemGroup>
35-
<_AppPluginsFiles Include="App_Plugins\**" />
35+
<_AppPluginsFiles Include="App_Plugins\**" Exclude="App_Plugins\**\node_modules\**" />
3636
<ContentWithTargetPath Include="@(_AppPluginsFiles)" Exclude="@(ContentWithTargetPath)" TargetPath="%(Identity)" CopyToOutputDirectory="PreserveNewest" CopyToPublishDirectory="PreserveNewest" />
3737
</ItemGroup>
3838
</Target>

0 commit comments

Comments
 (0)