Split build step into two

This commit is contained in:
Paul Sealock 2022-06-07 15:37:58 +12:00
parent c70e9e1333
commit b17e51fde8
1 changed files with 2 additions and 1 deletions

View File

@ -37,7 +37,8 @@
},
"scripts": {
"postinstall": "composer install",
"build": "wp-scripts build && pnpm run uglify",
"build": "pnpm run build:admin && pnpm run uglify",
"build:admin": "wp-scripts build",
"build:zip": "./bin/build-zip.sh",
"build:dev": "pnpm run lint:js && pnpm run build",
"uglify": "rm -f $npm_package_assets_js_min && for f in $npm_package_assets_js_js; do file=${f%.js}; node_modules/.bin/uglifyjs $f -c -m > $file.min.js; done",