Skip to content

Latest commit

 

History

History
 
 

hello-world-webpack2

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Hello World: Webpack2

Uses Webpack to bundle files and serves it with 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.