Skip to content

Instantly share code, notes, and snippets.

@jimfrenette
Forked from coryhouse/package.json
Created August 13, 2018 11:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimfrenette/06766cf25495fcf70cb434e13169dabe to your computer and use it in GitHub Desktop.
Save jimfrenette/06766cf25495fcf70cb434e13169dabe to your computer and use it in GitHub Desktop.
Example of pre and post scripts in package.json
{
"name": "npm-scripts-example",
"version": "1.0.0",
"description": "npm scripts example",
"scripts": {
"prebuild": "echo I run before the build script",
"build": "cross-env NODE_ENV=production webpack",
"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