Learn how to setup Webpack 2 from scratch, by following the complete playlist on YouTube.
- Webpack 2 - Installation and Config
- Webpack 2 - HTML Webpack Plugin
- Webpack 2 - Style, CSS and Sass loaders
- Webpack 2 with Webpack Dev Server
- Webpack 2 with Webpack Dev Server Configuration
- Clone this repo
- Run
npm install
to install all the dependencies - Run
npm run dev
- New browser window should open with a green text on pink background.
Don't forget to subscribe to my channel for more front-end videos.
As Mikael-Sundstrom pointed out, you can solve it by adding this to your config.
devServer: {
open: true,
openPage: '', //add this to solve it
}