Split build step into two
This commit is contained in:
parent
c70e9e1333
commit
b17e51fde8
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue