Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pug-plugin

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-plugin - npm Package Versions

13
9

4.9.6

Diff

Changelog

Source

4.9.6 (2023-03-04)

  • fix: correct loader export when template contain CRLF line separators
webdiscus
published 4.9.5 •

Changelog

Source

4.9.5 (2023-02-20)

  • chore: bump dev packages
  • test: fix testing helpers for exceptions in some cases
  • test: add base test template for new issues
  • docs: update readme
webdiscus
published 4.9.4 •

Changelog

Source

4.9.4 (2023-02-03)

  • fix: remove info comments before inlined SVG
  • chore: update dev packages
  • test: update tests
webdiscus
published 4.9.2 •

Changelog

Source

4.9.2 (2023-01-20)

  • fix: automatic publicPath must be empty string when used HMR
  • fix: corrupted inline JS code when code contains '$$' chars chain
webdiscus
published 4.9.1 •

Changelog

Source

4.9.1 (2023-01-19)

  • fix: resolving an inline script when the pretty option is true
  • fix: inline SVG in link tag as data-URL
  • refactor: improve processing of inline SVG
webdiscus
published 4.9.0 •

Changelog

Source

4.9.0 (2023-01-15)

  • DEPRECATE: use the css option name instead of the extractCss
  • DEPRECATE: the outdated syntax of CSS option is deprecated, and in next version will be removed:
    new PugPlugin({
      modules: [
        PugPlugin.extractCss({
          filename: 'assets/css/[name].[contenthash].css',
        }),
      ],
    }),
    
    Use the new syntax, since v4.6.0:
    new PugPlugin({
      css: {
        filename: 'assets/css/[name].[contenthash].css',
      },
    }),
    
  • feat: add support of an inline script using the ?inline query
  • fix: resolving inlined styles on windows
  • refactor: optimize code and message output
  • test: refactor tests
  • test: add test for inline JS
  • chore: update dev packages
  • docs: update readme
webdiscus
published 4.8.0 •

Changelog

Source

4.8.0 (2023-01-03)

  • feat: resolve required resources in attribute blocks:
    img&attributes({
      src: require('./image.png'),
      srcset: `${require('./image1.png')} 80w, ${require('./image2.png')} 90w`,
    })
    
webdiscus
published 4.7.0 •

Changelog

Source

4.7.0 (2022-12-31)

  • feat: add the js.verbose option to display extract info
  • feat: add the js.outputPath option
    new PugPlugin({
      js: {
        verbose: true,
        filename: '[name].[contenthash].js',
        outputPath: 'assets/js/',
      },
    }),
    
  • fix: resolving the js.filename option when used split chunk
  • fix: resolving the asset path when used the css.outputPath option
  • fix: when css.filename is a function, pass the pathData.filename property as a source file
  • test: optimize test for new options
  • docs: update readme
webdiscus
published 4.6.0 •

Changelog

Source

4.6.0 (2022-12-28)

  • feat: add short option name css as alias for extractCss option. Now use the new option name css instead of extractCss:
    new PugPlugin({
      css: {
        filename: 'assets/css/[name].[contenthash].css',
      },
    }),
    
  • feat: add new js option with filename property as alias for Webpack output.filename.
    new PugPlugin({
      js: {
        filename: 'assets/js/[name].[contenthash].js',
      },
    }),
    
    The js.filename option has prio over output.filename option.
webdiscus
published 4.5.2 •

Changelog

Source

4.5.2 (2022-12-28)

  • fix: CSS output path when publicPath has auto value
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