diff --git a/package.json b/package.json index 823fddbbb9..6f0dd4d071 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "scripts": { "start": "react-scripts start", "build": "react-scripts build", + "postbuild": "react-snap", "test": "react-scripts test", "eject": "react-scripts eject", "create-play": "plop" @@ -30,6 +31,12 @@ "react-app/jest" ] }, + "reactSnap": { + "puppeteerArgs": [ + "--no-sandbox", + "--disable-setuid-sandbox" + ] + }, "browserslist": { "production": [ ">0.2%", @@ -41,5 +48,8 @@ "last 1 firefox version", "last 1 safari version" ] + }, + "devDependencies": { + "react-snap": "^1.23.0" } } diff --git a/public/index.html b/public/index.html index bd45bc5eb9..96f6927182 100644 --- a/public/index.html +++ b/public/index.html @@ -5,8 +5,64 @@ - - + + + + + + + + + + + + + + + + +