Skip to content

Instantly share code, notes, and snippets.

@stephencweiss
Created December 10, 2018 14:35
Show Gist options
  • Save stephencweiss/6a5919ace98fcb4918f68f1e061bf5c2 to your computer and use it in GitHub Desktop.
Save stephencweiss/6a5919ace98fcb4918f68f1e061bf5c2 to your computer and use it in GitHub Desktop.
Scripts to run with your project that will bundle according to the development and production configurations.
//package.json
...
"scripts": {
...
"bundle:dev": "webpack --watch --debug --mode='development'",
"bundle:prod": "webpack --watch --mode='production'",
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment