Fix up build script

This commit is contained in:
Dane Everitt 2019-12-22 21:27:26 -08:00
parent c4fdcb5937
commit 338ffd0a8f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -108,10 +108,10 @@
"yarn-deduplicate": "^1.1.1" "yarn-deduplicate": "^1.1.1"
}, },
"scripts": { "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", "watch": "NODE_ENV=development ./node_modules/.bin/webpack --watch --progress",
"build": "NODE_ENV=development ./node_modules/.bin/webpack --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" "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": [ "browserslist": [