New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-bundler-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-bundler-webpack-plugin - npm Package Versions

1
1820

0.9.0

Diff

Changelog

Source

0.9.0 (2023-02-04)

  • BREAKING CHANGE: the 3rd argument data of the preprocessor has been moved to the 2nd argument as a property
    v0.9.0: preprocessor: (content, { resourcePath, data }) => {} <= NEW syntax
    v0.8.0: preprocessor: (content, { resourcePath }, data) => {} <= old syntax
  • fix: avoid an additional query param for internal use in the module's resource property
  • fix: remove info comments before inlined SVG
  • docs: add description how to pass data into template using new option entry
webdiscus
published 0.8.0 •

Changelog

Source

0.8.0 (2023-02-01)

  • feat: add entry plugin option, this option is identical to Webpack entry plus additional data property

  • feat: add 3rd data argument of the preprocessor to pass template specific data:

    module.exports = {
      plugins: [
        new HtmlBundlerPlugin({
          entry: {
            // <= NEW `entry` option
            index: {
              import: 'src/views/template.html',
              data: {
                // <= NEW `data` property
                title: 'Home',
              },
            },
          },
        }),
      ],
    
      module: {
        rules: [
          {
            test: /\.(html)$/,
            loader: HtmlBundlerPlugin.loader,
            options: {
              preprocessor: (content, { resourcePath }, data) => {
                // <= NEW 3rd `data` argument
                return render(content, data);
              },
            },
          },
        ],
      },
    };
    
  • feat: support split chunk

webdiscus
published 0.7.0 •

Changelog

Source

0.7.0 (2023-01-29)

  • feat: add postprocess plugin option
  • fix: parse srcset attribute containing a query as JSON5, e.g. srcset="image.png?{sizes: [100,200,300], format: 'jpg'}"
  • test: add tests for options, responsive images, exceptions
  • docs: update readme
webdiscus
published 0.6.0 •

Changelog

Source

0.6.0 (2023-01-28)

  • feat: add sources loader option to define custom tags and attributes for resolving source files
  • feat: add extractComments plugin option to enable/disable saving comments in *.LICENSE.txt file
  • feat: add to default resolving the data attribute of object tag
  • feat: add supports the responsive-loader
  • fix: resolve exact attribute name w/o leading wildcard
  • fix: resolve mutiline attributes
  • fix: resolve mutiline values in srcset attribute
  • test: add tests for new options, messages
  • docs: update readme
webdiscus
published 0.5.1 •

Changelog

Source

0.5.1 (2023-01-24)

  • refactor: optimize code
  • test: add test for usage Nunjucks template engine
  • docs: update readme for usage the multipage configuration with Nunjucks template engine
webdiscus
published 0.5.0 •

Changelog

Source

0.5.0 (2023-01-22)

  • feat: add test plugin option to process entry files that pass test assertion
  • feat: add preprocessor loader option to allow pre-processing of content before handling
  • test: add test for usage Handlebars template engine
  • docs: update readme with new features
webdiscus
published 0.4.0 •

Changelog

Source

0.4.0 (2023-01-20)

  • feat: add support for <input> <audio> <video> <track> tags
  • fix: automatic publicPath must be empty string when used HMR
  • fix: corrupted inline JS code when code contains $$ chars chain
webdiscus
published 0.3.0 •

Changelog

Source

0.3.0 (2023-01-18)

  • feat: inline binary images, e.g. PNG
  • feat: inline SVG images
  • fix: resolve href in the <link> tag with the attribute type="text/css" as the style file
webdiscus
published 0.2.1 •

Changelog

Source

0.2.1 (2023-01-16)

  • fix: resolving inlined styles on windows
webdiscus
published 0.2.0 •

Changelog

Source

0.2.0 (2023-01-14)

  • feat: add supports for the inline CSS in HTML
  • feat: add supports for the inline JS in HTML
  • test: add test for new features
  • docs: update readme
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc