From d49887a061dcb2df731e33e1170977b94ee595bf Mon Sep 17 00:00:00 2001 From: Brooke Date: Thu, 13 Oct 2022 14:44:22 -0700 Subject: [PATCH] TCA-508 #comment This commit adds a post build script to create gzip versions of the js and css files #time 30m --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 129e598f8..de6f7db37 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "start": "sh start-ssl.sh", "start:brooke": "sudo sh start-ssl-brooke.sh", "build": "yarn react-app-rewired build", + "postbuild": "gzip build/static/js/*.js && gzip build/static/css/*.css", "lint": "tslint 'src-ts/**/*.{ts,tsx}' && eslint 'src*/**/*.{js,jsx,ts,tsx}'", "lint:fix": "tslint 'src-ts/**/*.{ts,tsx}' --fix && eslint 'src*/**/*.{js,jsx,ts,tsx}' --fix", "tslint": "tslint 'src-ts/**/*.{ts,tsx}'",