diff --git a/package.json b/package.json index 7f9e0fd08..8f9a4eaf2 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,18 @@ "insights": { "appname": "subscriptions" }, - "browserslist": [], + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + }, "jest": { "coverageThreshold": { "global": { diff --git a/scripts/dev.chrome.sh b/scripts/dev.chrome.sh index 4e6849169..82ed898ea 100644 --- a/scripts/dev.chrome.sh +++ b/scripts/dev.chrome.sh @@ -91,6 +91,13 @@ buildChrome() printf "\n${GREEN}Build SUCCESS${NOCOLOR}" fi + if [ ! -d $DIR_REPO/build ]; then + printf "\n${YELLOW}Build output failed, confirm recent chroming updates didn't alter the output directory.${NOCOLOR}\n" + exit 0 + else + printf "\n${GREEN}Build SUCCESS${NOCOLOR}" + fi + printf "\n${YELLOW}Setting up local chrome ...${NOCOLOR}" mkdir -p $DIR_PUBLIC