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

puglint-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puglint-webpack-plugin

A puglint plugin for webpack

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm node

puglint-webpack-plugin

A Puglint plugin for webpack. You can see more puglint rule.

Requirements

This module requires a minimum of Node v6.9.0 and webpack v4.0.0.

Install

$ npm install puglint-webpack-plugin --save-dev

Then add the plugin to your webpack config. For example:

// webpack.config.js
const PugLintPlugin = require('puglint-webpack-plugin')
const options = {
  context: 'src',
  files: '**/*.pug',
  config: Object.assign({emitError: true}, require('../.pug-lintrc'))
}

module.exports = {
  // ...
  plugins: [
    new PugLintPlugin(options),
  ],
  // ...
}

And run webpack via your preferred method.

Options

It takes the following parameters.

context

Type: String Default: compiler.context

A String indicating the root of your PUG files.

files

Type: String Default: undefined

Specify the glob pattern for finding files. Must be relative to options.context.

config

Type: String Default: undefined

Specify the config file location to be used by puglint. You can pass puglint options.

License

MIT

Keywords

FAQs

Package last updated on 16 May 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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