0.3.0 • Published 6 years ago

webpack-watch-time-plugin v0.3.0

Weekly downloads
1,073
License
ISC
Repository
github
Last release
6 years ago

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

0.3.0

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.3

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago