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 0354023..f717415 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 0e36801..38aa423 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 2aa0f5d..5811e72 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 1f47636..b44ec25 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 106ade4..1f055c1 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": {