Skip to content

Commit

Permalink
Updating webpack2 example readme (visgl#572)
Browse files Browse the repository at this point in the history
Closes visgl#568.

Doc corrected according to @apercu
  • Loading branch information
r-mach authored and apercu committed Apr 13, 2017
1 parent aeb2816 commit b2e28ce
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions examples/hello-world-webpack2/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
* [hello-world-webpack2](./hello-world-webpack.md): Bundles a minimal app with
[webpack 2](https://github.com/webpack/webpack) and serves it with webpack-dev-server.
<div align="center">
<img width="150" heigth="150" src="https://webpack.js.org/assets/icon-square-big.svg" />
</div>

## Hello World: Webpack2

Uses [Webpack](https://github.com/webpack/webpack) to bundle files and serves it
with [webpack-dev-server](https://webpack.js.org/guides/development/#webpack-dev-server).

Commands:
* `npm start` is the development target, and will serves the app on port 3000.
* `npm run build` is the production target, to create the final bundle.

Remarks:
* In a real application you would likely want to add things like hot reloading for development
and a minification step etc to the production build step etc.
* These steps have been omitted here in order to keep the example as simple as possible.

0 comments on commit b2e28ce

Please sign in to comment.