Socket
Socket
Sign inDemoInstall

clean-terminal-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clean-terminal-webpack-plugin - npm Package Compare versions

Comparing version 2.0.6 to 2.1.0

12

index.js

@@ -5,6 +5,8 @@ 'use strict';

constructor(options = {}) {
const { message, onlyInWatchMode = true } = options;
const { message, onlyInWatchMode = true, skipFirstRun = false } = options;
this.message = message;
this.onlyInWatchMode = onlyInWatchMode;
this.skipFirstRun = skipFirstRun;
this.firstRun = true;
}

@@ -25,2 +27,10 @@

shouldClearConsole(compiler) {
if (this.firstRun) {
this.firstRun = false;
if (this.skipFirstRun) {
return false;
}
}
if (this.onlyInWatchMode) {

@@ -27,0 +37,0 @@ return Boolean(compiler.watchMode);

2

package.json
{
"name": "clean-terminal-webpack-plugin",
"version": "2.0.6",
"version": "2.1.0",
"description": "Cleans your terminal output during development to only show the latest build information.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -36,2 +36,3 @@ # Clean Terminal Webpack Plugin

| `onlyInWatchMode` | Boolean | no | `true` | Only clear the screen if webpack is in watch mode |
| `skipFirstRun` | Boolean | no | `false` | Don't clear the screen on first webpack run |

@@ -38,0 +39,0 @@ ## Example

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