Skip to content

Commit 338ffd0

Browse files
committed
Fix up build script
1 parent c4fdcb5 commit 338ffd0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@
108108
"yarn-deduplicate": "^1.1.1"
109109
},
110110
"scripts": {
111-
"clean": "rm -rf public/assets/*.js && rm -rf public/assets/*.css",
111+
"clean": "rm -rf public/assets/*.{js,css,map}",
112112
"watch": "NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
113113
"build": "NODE_ENV=development ./node_modules/.bin/webpack --progress",
114-
"build:production": "NODE_ENV=production ./node_modules/.bin/webpack --mode production",
114+
"build:production": "yarn run clean && NODE_ENV=production ./node_modules/.bin/webpack --mode production",
115115
"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"
116116
},
117117
"browserslist": [

0 commit comments

Comments
 (0)