DEV Community

Cover image for webpack adoption guide: Overview, examples, and alternatives

webpack adoption guide: Overview, examples, and alternatives

Megan Lee on February 08, 2024

Written by John Reilly ✏️ If you're a JavaScript developer, you've probably heard of webpack, a JavaScript bundler that helps you bundle your code...
Collapse
 
webdiscus profile image
webdiscus

Instead of the html-webpack-plugin you can try to use the modern and powerful html-bundler-webpack-plugin.
The HTML bundler works like Vite. You can define source style and script files directly in HTML template. The plugin supports many template engines (EJS, Pug, Twig, Handlebars, Nunjucks, and other) out of the box.

Collapse
 
pengeszikra profile image
Peter Vivo

Great summarizing of bundler history. My tipp for vite is works a little better for NPM react module bundling. react-state-factory ts npm module used by vite