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

pug-plugin

Package Overview
Dependencies
Maintainers
1
Versions
93
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-plugin - npm Package Versions

1
9

3.0.0

Diff

Changelog

Source

3.0.0 (2022-07-17)

⚠ BREAKING CHANGES

  • Drop support for Node 12, minimum supported version is 14.18

    • Node 12 is End-of-Life.
    • Actual version of sass-loader 13.x requires Node 14.
  • By default, the embedded CSS extractor module is now enabled. For compatibility with external extractor, you can disable extractCss module:

new PugPlugin({
  extractCss: {
    enabled: false, // disable embedded extractCss module to bypass extracting via external plugin
  },
}),

⚠ DEPRECATION

definition of extractCss as plugin module is deprecated:

new PugPlugin({
  modules: [
    PugPlugin.extractCss({
      filename: 'assets/css/[name].[contenthash].css',
    })
  ],
}),

now use the new extractCss option:

new PugPlugin({
  extractCss: {
    filename: 'assets/css/[name].[contenthash].css',
  },
}),

Note: you can still use the modules: [] option for custom settings.

Features

  • feat: add support auto publicPath
  • feat: add extractCss option for embedded CSS extract module
  • feat: defaults, the extractCss module is enabled with default options
  • feat: improved resolving of assets
  • feat: add supports for zero config,
    it means, that w/o any plugin options the pug, scss and js module will be processed with default options.
    Zero config new PugPlugin() is equivalent to:
    new PugPlugin({
      test: /\.(pug)$/,
      enabled: true,
      verbose: false,
      pretty: false,
      sourcePath: null,
      outputPath: null,
      filename: '[name].html',
      extractComments: false,
      extractCss: {
        test: /\.(css|scss|sass|less|styl)$/,
        enabled: true,
        verbose: false,
        filename: '[name].css',
        sourcePath: null,
        outputPath: null,
      },
      modules: [],
    }),
    

Bug Fixes

  • fix: assets resolving using auto publicPath
webdiscus
published 2.9.3 •

Changelog

Source

2.9.3 (2022-07-05)

  • fix: remove wrong runtime files split when using splitChunks
  • docs: update readme with info how to use split chunk for JS only
webdiscus
published 2.9.2 •

Changelog

Source

2.9.2 (2022-07-03)

  • fix: HMR issue on Windows
webdiscus
published 2.9.1 •

Changelog

Source

2.9.1 (2022-07-03)

  • fix: remove unused module
webdiscus
published 2.9.0 •

Changelog

Source

2.9.0 (2022-07-03)

  • feat: display the error message on broken page due to fatal error
  • feat: add HMR support on broken page due to fatal error
webdiscus
published 2.8.0 •

Changelog

Source

2.8.0 (2022-06-28)

  • feat: improve url dependency resolving in styles using webpack snapshot
webdiscus
published 2.7.9 •

Changelog

Source

2.7.9 (2022-06-27)

  • refactor: optimize resolving of url in styles
webdiscus
published 2.7.8 •

Changelog

Source

2.7.8 (2022-06-27)

  • fix: resolving of relative url in deep imported style files
  • fix: resolving url with a query in CSS
webdiscus
published 2.7.7 •

Changelog

Source

2.7.7 (2022-06-22)

  • fix: issue by resolving asset aliases on Windows
webdiscus
published 2.7.6 •

Changelog

Source

2.7.6 (2022-06-20)

  • fix: warning by watching interpolated dependencies with compile method of pug loader
  • 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