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

1
79

1.4.3

Diff

Changelog

Source

1.4.3 (2022-02-21)

  • fix: the webpack option inline-source-map to save css and source map in single file
  • chore: update pug-loader to the latest version
webdiscus
published 1.4.2 •

Changelog

Source

1.4.2 (2022-02-19)

  • fix: update pug-loader to fix collision with local variables passed in template function for the compile method
webdiscus
published 1.4.1 •

Changelog

Source

1.4.1 (2022-02-19)

  • fix: update pug-loader to fix path error in Windows when watching dependencies
webdiscus
published 1.4.0 •

Changelog

Source

1.4.0 (2022-02-18)

  • BREAKING CHANGE (low probability): When using required style in pug, like link(rel='stylesheet' href=require('./styles.css')) then no need anymore the type: 'asset/resource' in the rule for styles.
    UPDATE your webpack.config.js: remove in the rule for styles (css, scss, sass, etc.) the type and the generator fields.
    Following is enough to extract CSS everywhere:

    {
      test: /\.(css|sass|scss)$/,
      // type: 'asset/resource', <-- remove the type property
      // generator: { 'assets/css/[name].[contenthash:8].css' } <-- remove the generator property
      use: [ 'css-loader', 'sass-loader' ],
    },
    

    To define a filename for extracted CSS use the option filename in the extractCss module:

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

    For mode details see plugin options.

  • feat: add resolving url in CSS and export resolved resource to the output path

  • feat: add caching of already resolved resources by enhanced resolver

  • feat: improved html and css extraction

  • refactor: complete refactoring of all code

  • fix: issue for the option outputPath

  • fix: resolving issue by import styles directly from node_modules, e.g.: @import 'material-icons';

webdiscus
published 1.4.0-beta.0 •

webdiscus
published 1.3.2 •

Changelog

Source

1.3.2 (2022-02-10)

  • fix: issue in module extractCss by usage the data-url in css property, #3
  • fix: update pug-loader to the latest version with fixed issues
webdiscus
published 1.3.0 •

Changelog

Source

1.3.0 (2022-02-07)

  • feat: add extraction of the source map for CSS in separate file
  • fix: no extract source map for CSS in node <=14
  • chore: replace console.log with process.stdout by output in terminal
  • chore: update the pug-loader to the new version
  • docs: update readme: remove unsupported substitutions [base] [path] [ext] by the option filename
webdiscus
published 1.3.0-beta.0 •

webdiscus
published 1.2.5 •

Changelog

Source

1.2.5 (2022-01-31)

  • feat: update the pug-loader to the latest version supported the htmlWebpackPlugin.options in pug template
  • test: add the test case for require fonts in pug template
  • refactor: tests
  • docs: update readme
webdiscus
published 1.2.4 •

Changelog

Source

1.2.4 (2022-01-28)

  • fix: issue by output info with enabled verbose and filename as a function
  • fix: issue by usage a query string in entry filename
  • fix: issue when the same asset file is defined webpack entry-point and required in pug
  • refactor: exceptions
  • chore: update npm packages
  • 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