Skip to content

Instantly share code, notes, and snippets.

@coryhouse
Last active November 9, 2023 06:04
Show Gist options
  • Select an option

  • Save coryhouse/b7ff5e6d1e41b762c35b to your computer and use it in GitHub Desktop.

Select an option

Save coryhouse/b7ff5e6d1e41b762c35b to your computer and use it in GitHub Desktop.
Example of pre and post scripts in package.json
"prebuild": "echo I run before the build script",
"build": "NODE_ENV=production webpack --config webpack.config.prod.js"
"postbuild": "echo I run after the build script"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment