zorigitano / multipage-webpack-plugin

A plugin that makes handling templates and asset distribution for multi-page applications using webpack trivial
Apache License 2.0
170 stars 15 forks source link

Webpack 4 support #35

Open EddyVinck opened 6 years ago

EddyVinck commented 6 years ago

Hi.

I'm following Sean Larkin's Webpack course now on Frontend Masters and he showed us this plugin when I asked a question about how to handle multiple HTML files better than having 30 new HtmlWebpackPlugins,

I was wondering if this plugin will be ported to Webpack 4 or not. I'm willing to help but as of right now I know nothing about how to port plugins to Webpack 4.

yarthur commented 6 years ago

Hi Eddy, thanks for reaching out.

At this time, our team is not actively working on this plugin, and we do not have a plan to bring this to Webpack 4.

You’re more than welcome to try and update it yourself. We’d love to see a PR if you get things to a place you’re happy with.

yassmii commented 6 years ago

Hello, I also followed the webpack course of Sean Larkin on Frontend Masters, and i made an attempt to migrate the multipage webpack plugin (it's the same code, juste changed how the htmlwebpackplugin was called), here it is : https://gist.github.com/yassmii/2a6f957b20e553c89c42b4316eea994f .

It's working, and i'm currently testing it on a project, but there's lot more to do on it, especially on the chunk side since CommonChunksPlugin has been deleted, i'm searching how to replace it, and maybe some cleaning, so let me know what you think of it :).