Skip to content

Commit

Permalink
Update scrips to call envConf.js file on build/start
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenna Hines committed Oct 28, 2022
1 parent faa3af0 commit 1332a55
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 39 deletions.
135 changes: 97 additions & 38 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"lint:pkg-json": "wp-scripts lint-pkg-json",
"packages-update": "wp-scripts packages-update",
"postinstall": "npm run build",
"blocks": "cross-env NODE_ENV=production wp-scripts build --webpack-src-dir=src/blocks --webpack-copy-php",
"blocks": "node envConf.js && cross-env NODE_ENV=production wp-scripts build --webpack-src-dir=src/blocks --webpack-copy-php",
"global": "cross-env NODE_ENV=production wp-scripts build --config webpack.global.js",
"build": "npm-run-all blocks global",
"blocks:watch": "cross-env NODE_ENV=production wp-scripts start --webpack-src-dir=src/blocks --webpack-copy-php",
Expand Down

0 comments on commit 1332a55

Please sign in to comment.