Based on https://github.com/angular-tips/webpack-demo Run webpack development server npm run dev Start webserver http://127.0.0.1:8080 Run spa-server serving dist folder npm run run:dist Start webserver http://127.0.0.1:8080 Build development to dist folder npm run build:dev Build production to dist folder npm run build:prod