From 338ffd0a8f7c4881c07bb0c9c8f2949d9ce03d60 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 22 Dec 2019 21:27:26 -0800 Subject: [PATCH] Fix up build script --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 126bcf2a2..5912eff3e 100644 --- a/package.json +++ b/package.json @@ -108,10 +108,10 @@ "yarn-deduplicate": "^1.1.1" }, "scripts": { - "clean": "rm -rf public/assets/*.js && rm -rf public/assets/*.css", + "clean": "rm -rf public/assets/*.{js,css,map}", "watch": "NODE_ENV=development ./node_modules/.bin/webpack --watch --progress", "build": "NODE_ENV=development ./node_modules/.bin/webpack --progress", - "build:production": "NODE_ENV=production ./node_modules/.bin/webpack --mode production", + "build:production": "yarn run clean && NODE_ENV=production ./node_modules/.bin/webpack --mode production", "serve": "yarn run clean && PUBLIC_PATH=https://pterodactyl.test:8080 NODE_ENV=development webpack-dev-server --host 0.0.0.0 --hot --https --key /etc/ssl/private/pterodactyl.test-key.pem --cert /etc/ssl/private/pterodactyl.test.pem" }, "browserslist": [