This PR completely changes the internals of Mojolicious::Plugin::Webpack by replacing Mojolicious::Plugin::Webpack::Builder with Mojo::Alien::npm and Mojo::Alien::webpack.
This is a pretty big change, so here are some highlights:
Add Mojo::Alien::npm to run "npm". This module can init a nodejs repo, install dependencies and return information about dependencies.
Add Mojo::Alien::webpack. This module can init and build a webpack project. It has most of the functionality that Mojolicious::Plugin::Webpack::Builder used to have, but it's more focused.
Mojolicious::Plugin::Webpack is rewritten to use Mojo::Alien::webpack as "engine". It will also use the information from Mojo::Alien::webpack::asset_map() instead of parsing the a generated HTML file in public/asset/.
A bunch of files have been deleted since they are not longer in use.
Mojo::Alien::webpack::asset_map() also tracks images and other assets, which solves #12.
This PR completely changes the internals of Mojolicious::Plugin::Webpack by replacing Mojolicious::Plugin::Webpack::Builder with Mojo::Alien::npm and Mojo::Alien::webpack.
This is a pretty big change, so here are some highlights: