From 418255e14890cbb266dc0649e22e8d2c90c6be15 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Mon, 17 Oct 2016 11:33:57 +0100 Subject: [PATCH] Exclude node_modules from .NET compilation. Fixes #378. --- templates/Angular2Spa/project.json | 5 ++++- templates/KnockoutSpa/project.json | 5 ++++- templates/ReactReduxSpa/project.json | 5 ++++- templates/ReactSpa/project.json | 5 ++++- templates/WebApplicationBasic/project.json | 5 ++++- 5 files changed, 20 insertions(+), 5 deletions(-) diff --git a/templates/Angular2Spa/project.json b/templates/Angular2Spa/project.json index 035402371b..f717415764 100755 --- a/templates/Angular2Spa/project.json +++ b/templates/Angular2Spa/project.json @@ -40,7 +40,10 @@ "buildOptions": { "emitEntryPoint": true, - "preserveCompilationContext": true + "preserveCompilationContext": true, + "compile": { + "exclude": ["node_modules"] + } }, "runtimeOptions": { diff --git a/templates/KnockoutSpa/project.json b/templates/KnockoutSpa/project.json index 0e36801b07..38aa423ba2 100755 --- a/templates/KnockoutSpa/project.json +++ b/templates/KnockoutSpa/project.json @@ -40,7 +40,10 @@ "buildOptions": { "emitEntryPoint": true, - "preserveCompilationContext": true + "preserveCompilationContext": true, + "compile": { + "exclude": ["node_modules"] + } }, "runtimeOptions": { diff --git a/templates/ReactReduxSpa/project.json b/templates/ReactReduxSpa/project.json index 2aa0f5d04f..5811e72343 100755 --- a/templates/ReactReduxSpa/project.json +++ b/templates/ReactReduxSpa/project.json @@ -40,7 +40,10 @@ "buildOptions": { "emitEntryPoint": true, - "preserveCompilationContext": true + "preserveCompilationContext": true, + "compile": { + "exclude": ["node_modules"] + } }, "runtimeOptions": { diff --git a/templates/ReactSpa/project.json b/templates/ReactSpa/project.json index 1f47636999..b44ec2543b 100755 --- a/templates/ReactSpa/project.json +++ b/templates/ReactSpa/project.json @@ -40,7 +40,10 @@ "buildOptions": { "emitEntryPoint": true, - "preserveCompilationContext": true + "preserveCompilationContext": true, + "compile": { + "exclude": ["node_modules"] + } }, "runtimeOptions": { diff --git a/templates/WebApplicationBasic/project.json b/templates/WebApplicationBasic/project.json index 106ade4dcf..1f055c135d 100755 --- a/templates/WebApplicationBasic/project.json +++ b/templates/WebApplicationBasic/project.json @@ -38,7 +38,10 @@ "buildOptions": { "emitEntryPoint": true, - "preserveCompilationContext": true + "preserveCompilationContext": true, + "compile": { + "exclude": ["node_modules"] + } }, "runtimeOptions": {