JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 47204
  • Score
    100M100P100Q152412F
  • License MIT

A miniature version of html-webpack-plugin with less functionality

Package Exports

  • mini-html-webpack-plugin

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (mini-html-webpack-plugin) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

mini-html-webpack-plugin - A miniature version of html-webpack-plugin with less functionality

The plugin writes CSS and JS asset paths for you automatically. You can also override most of it. It does not work with html-webpack-plugin plugins!

Usage:

new HtmlWebpackPluginLite({
  context: {
    title: "Webpack demo", // Available in the context below
  },
  template: ({ css, js, title }) => ... return html ... // Optional
  filename: 'demo.html', // Optional, defaults to `index.html`
}),

License

MIT.