You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

webpack-watch-time-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-watch-time-plugin

Webpack plugin that displays time when watcher rebuild happens

0.3.0
latest
Source
npmnpm
Version published
Weekly downloads
387
50.58%
Maintainers
1
Weekly downloads
 
Created
Source

webpack-watch-time-plugin

Webpack plugin to display time when watcher rebuild happens

Installation

npm i -D 'webpack-watch-time-plugin'

In webpack.config.js

const WatchTimePlugin = require('webpack-watch-time-plugin');
let config = {
	// <...>

	plugins: [
		new WatchTimePlugin(),
	]
};

module.exports = config;

Configuration

This plugin accepts an object with additional options:

  • noChanges: boolean | Object — If provided, the plugin will detect if no changes in source files were made
  • logLevel: 'error' | 'warn' | 'info' — Log level for plugin output
PropertyTypeRequiredDefaultDescription
noChanges.detectbooleanNofalseWherever to detect changes
noChanges.reportbooleanNofalseIf detecting, wherever to report when no changes were made (if false, plugin will provide no output at all in these cases)
noChanges.includeNodeModulesbooleanNofalseWherever to detect changes in node_modules folders either
logLevelstringNo'error'Log level for plugin output. For debugging issues use logLevel: 'warn'

Example

new WatchTimePlugin({
  noChanges: {
    detect: true,
    report: true
  },
  logLevel: 'warn'
})

Usage

webpack -w

webpack -w output

Keywords

webpack

FAQs

Package last updated on 03 Aug 2018

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