If you have used CLI for your existing application You can migrate from Angular CLI to Webpack and tweak it accordingly for
(local, development, production).
Since Angular CLI v1.0 there’s the “eject” feature, that allows you to extract thewebpack config file and manipulate it as you wish.
If you have used CLI for your existing application You can migrate from Angular CLI to Webpack and tweak it accordingly for (local, development, production). Since Angular CLI v1.0 there’s the “eject” feature, that allows you to extract the
webpack
config file and manipulate it as you wish.Run
ng eject
so Angular CLI generates the webpack.config.js file.Run
npm install
so the new dependencies generated by CLI are satisfiedRefer this Angular CLI to webpack
if you don't want to use CLI at all Refer This An Angular 2 Webpack setup for development and production and Webpack: An Introduction
If you want to go without Angular CLI
But I strongly suggest go with CLI as there it support end to end activity i.e. project start till deployment project