Socket
Socket
Sign inDemoInstall

webpack-logger-plugin

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-logger-plugin

A better logger for Webpack.


Version published
Maintainers
1
Created
Source

Webpack Logger Plugin

JavaScript Style Guide dependencies Status

What you get:

With readable error output:

Introduction

When using Webpack the default output during compilation is generally not all that helpful. This plugin draws from a few other plugins out there to give you progress output and a clean terminal.

Why not use nyan-progress-webpack-plugin? For a simple reason, this plugin aims to simplify terminal output and progress bars with webpack are not all that helpful since the total number of modules being bundled is not known on startup, meaning your progress bar keeps adjusting down as build continues. Instead, we use a spinner along with react-dev-utils' helpful message formatting.

TL;DR

This package is for Webpack users who have large projects created before they could benefit from create-react-app.

Install

$ npm i -D webpack-logger-plugin

Usage

Add to your webpack config:

const WebpackLoggerPlugin = require('webpack-logger-plugin')

const config = {
	entry: '...',
	output: {...},
	modules: {...},
	plugins: [
		new WebpackLoggerPlugin()
	]
}

And add this to your webpack-dev-server config:

const server = new webpackDevServer(compiler, {
	quiet: true,
	// If using proxy add logLevel: 'silent'
	proxy: {
		'/api': {
			...
			logLevel: 'silent'
		}
	}
})

Keywords

FAQs

Package last updated on 28 Nov 2016

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