From 0bc801bb78c02442067193f4fdab3ca850aaba8c Mon Sep 17 00:00:00 2001 From: Youcef Mammar Date: Mon, 15 Oct 2018 10:26:56 +0200 Subject: [PATCH] fix(angular): add prod param to build command (#278) --- scripts/__snapshots__/e2e-templates.test.js.snap | 2 +- src/templates/Angular InstantSearch/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/__snapshots__/e2e-templates.test.js.snap b/scripts/__snapshots__/e2e-templates.test.js.snap index 3f86a09dc..ea6d353b4 100644 --- a/scripts/__snapshots__/e2e-templates.test.js.snap +++ b/scripts/__snapshots__/e2e-templates.test.js.snap @@ -250,7 +250,7 @@ exports[`Templates Angular InstantSearch File content: package.json 1`] = ` \\"scripts\\": { \\"ng\\": \\"ng\\", \\"start\\": \\"ng serve --port 3000\\", - \\"build\\": \\"ng build\\", + \\"build\\": \\"ng build --prod\\", \\"test\\": \\"ng test\\", \\"lint\\": \\"ng lint\\", \\"e2e\\": \\"ng e2e\\" diff --git a/src/templates/Angular InstantSearch/package.json b/src/templates/Angular InstantSearch/package.json index 22efb6f1b..83befa080 100644 --- a/src/templates/Angular InstantSearch/package.json +++ b/src/templates/Angular InstantSearch/package.json @@ -5,7 +5,7 @@ "scripts": { "ng": "ng", "start": "ng serve --port 3000", - "build": "ng build", + "build": "ng build --prod", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e"