From 4ce5481fd0bdb3685b1e3774952fc72ff0cf4b3e Mon Sep 17 00:00:00 2001 From: Emily Doherty Date: Sat, 4 Mar 2023 15:48:02 -0800 Subject: [PATCH] Correct build rule to include production mode Not that it wasn't building in production before, but this means it no longer warns it's using the default values --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 64e24ca..e19c047 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "private": true, "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "webpack && mkdir -p dist && cp src/robots.txt src/index.html src/style.css src/favicon.ico dist/", + "build": "webpack --mode production && mkdir -p dist && cp src/robots.txt src/index.html src/style.css src/favicon.ico dist/", "build-dev": "webpack --mode development && mkdir -p dist && cp src/robots.txt src/index.html src/style.css src/favicon.ico dist/" }, "devDependencies": {