Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages and switch to modern bundler plugin #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

webdiscus
Copy link

@webdiscus webdiscus commented Mar 14, 2024

Hello @taniarascia,

I'm the author of the html-bundler-webpack-plugin and want to demonstrate how easily to configure this plugin for modern features.

The Bundler Plugin generates static HTML or template function from any template containing source files of scripts, styles, images, fonts and other resources, similar to how it works in Vite.

This plugin replaces the functionality of the plugins and loaders:

Changes

  • Update package dependencies
  • Switch to modern html-bundler-webpack-plugin
  • Add support for template as entrypoint
  • Add support for template engines such as Eta, EJS, Handlebars, Nunjucks, Pug, TwigJS out of the box
  • Add support for load source style, script, image file in template Add support for inject JS and CSS into DOM
  • Add support for inject SVG tag into DOM
  • Add support for live reload after changes

P.S.

Before merge/close this PR, please try my fork:

git clone https://github.com/webdiscus/webpack-boilerplate.git
cd webpack-boilerplate
npm i
npm start

Switch to modern html-bundler-webpack-plugin
Add support for template as entrypoint
Add support for load source style, script, image file in template
Add support for inject JS and CSS into DOM
Add support for inject SVG tag into DOM
Add support for live reload after changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant