Skip to content

Instantly share code, notes, and snippets.

@eMahtab
Created January 12, 2017 09:41
Show Gist options
  • Save eMahtab/7e67884b4e89c67f238046fe5e4e6508 to your computer and use it in GitHub Desktop.
Save eMahtab/7e67884b4e89c67f238046fe5e4e6508 to your computer and use it in GitHub Desktop.
webpack-dev-server does not produce bundle.js
The webpack-dev-server prevents webpack from emitting the resulting files to disk. Instead it keeps and serves the resulting
files from memory. This means that you will not see the webpack-dev-server build in bundle.js, to see and run the build,
you must still run the webpack command.
To generate the bundle.js, run
webpack
To generate minified bundle.js, run
webpack -p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment