From f7ed185b7f3e1b37fe71b6bdfc10d12fbdb5b3cb Mon Sep 17 00:00:00 2001 From: Chad Fawcett Date: Sat, 13 Oct 2018 11:00:51 -0700 Subject: [PATCH 1/2] Skip preflight check when starting cra kitchen sink --- examples/cra-kitchen-sink/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json index 174819fcf991..194ac1de7c2a 100644 --- a/examples/cra-kitchen-sink/package.json +++ b/examples/cra-kitchen-sink/package.json @@ -6,7 +6,7 @@ "build": "react-scripts build", "build-storybook": "build-storybook -s public", "eject": "react-scripts eject", - "start": "react-scripts start", + "start": "SKIP_PREFLIGHT_CHECK=true react-scripts start", "storybook": "start-storybook -p 9010 -s public", "test": "react-scripts test --env=jsdom" }, From 2d4df5f2af6432793fcdc2b277439e01bcbedef0 Mon Sep 17 00:00:00 2001 From: Chad Fawcett Date: Sat, 13 Oct 2018 16:00:19 -0700 Subject: [PATCH 2/2] Move SKIP_PREFLIGHT_CHECK to .env --- examples/cra-kitchen-sink/.env | 1 + examples/cra-kitchen-sink/.gitignore | 1 - examples/cra-kitchen-sink/package.json | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 examples/cra-kitchen-sink/.env diff --git a/examples/cra-kitchen-sink/.env b/examples/cra-kitchen-sink/.env new file mode 100644 index 000000000000..6f809cc2540d --- /dev/null +++ b/examples/cra-kitchen-sink/.env @@ -0,0 +1 @@ +SKIP_PREFLIGHT_CHECK=true diff --git a/examples/cra-kitchen-sink/.gitignore b/examples/cra-kitchen-sink/.gitignore index 927d17bb9c5b..6ba1de482d04 100644 --- a/examples/cra-kitchen-sink/.gitignore +++ b/examples/cra-kitchen-sink/.gitignore @@ -11,7 +11,6 @@ # misc .DS_Store -.env npm-debug.log* yarn-debug.log* yarn-error.log* diff --git a/examples/cra-kitchen-sink/package.json b/examples/cra-kitchen-sink/package.json index 194ac1de7c2a..174819fcf991 100644 --- a/examples/cra-kitchen-sink/package.json +++ b/examples/cra-kitchen-sink/package.json @@ -6,7 +6,7 @@ "build": "react-scripts build", "build-storybook": "build-storybook -s public", "eject": "react-scripts eject", - "start": "SKIP_PREFLIGHT_CHECK=true react-scripts start", + "start": "react-scripts start", "storybook": "start-storybook -p 9010 -s public", "test": "react-scripts test --env=jsdom" },