nyan-styled-progress-webpack-plugin

2.0.2 • Public • Published

nyan-styled-progress-webpack-plugin

Meow (forked from Alexkuz)



Install

$ npm i -D nyan-styled-progress-webpack-plugin

$ yarn add nyan-styled-progress-wegpack-plugin --dev

Usage

// weback.config.js
const webpack = require("webpack");
const NyanStyledProgressPlugin = require("nyan-styled-progress-webpack-plugin");

module.exports = {
  plugins: [new NyanStyledProgressPlugin(options)],
};
This plugin uses webpack progress-plugin under the hood.

Options

Name type Default Description
logger Function console.log Used for logging messages to command line
width Number process.stdout.columns Helps determine the width of nyan cat and rainbow
hookStdout Boolean true If true, patches process.stdout.write during progress and counts extraneous log messages, to position Nyan Cat properly
getProgressMessage Function(progress, messages, styles) (progress, messages, styles) => {} Gets custom progress message. styles is provided for convenience (exported from ansi-styles module)
debounceInterval Number 180 Defines how often getProgressMessage is called (in milliseconds)
nyanCatSays Function(progress, messages) (progress, messages) => {} function to define what nyan cat is saying
restoreCursorPosition Boolean false Enable this flag, if your terminal supports saving/restoring cursor position, for better output handling

/nyan-styled-progress-webpack-plugin/

    Package Sidebar

    Install

    npm i nyan-styled-progress-webpack-plugin

    Weekly Downloads

    22

    Version

    2.0.2

    License

    ISC

    Unpacked Size

    16.2 kB

    Total Files

    10

    Last publish

    Collaborators

    • kbyrum