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.

Revisions

  1. coryhouse revised this gist Jan 17, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion package.json
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    "description": "npm scripts example",
    "scripts": {
    "prebuild": "echo I run before the build script",
    "build": "NODE_ENV=production webpack --config webpack.config.prod.js",
    "build": "cross-env NODE_ENV=production webpack",
    "postbuild": "echo I run after the build script"
    }
    }
  2. coryhouse revised this gist Dec 20, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion package.json
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@
    "description": "npm scripts example",
    "scripts": {
    "prebuild": "echo I run before the build script",
    "build": "NODE_ENV=production webpack --config webpack.config.prod.js"
    "build": "NODE_ENV=production webpack --config webpack.config.prod.js",
    "postbuild": "echo I run after the build script"
    }
    }
  3. coryhouse revised this gist Dec 20, 2015. 1 changed file with 7 additions and 0 deletions.
    7 changes: 7 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,10 @@
    {
    "name": "npm-scripts-example",
    "version": "1.0.0",
    "description": "npm scripts example",
    "scripts": {
    "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"
    }
    }
  4. coryhouse created this gist Dec 20, 2015.
    3 changes: 3 additions & 0 deletions package.json
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    "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"