GithubHelp home page GithubHelp logo

anthrax3 / webpackbar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unjs/webpackbar

0.0 0.0 0.0 1.01 MB

Elegant ProgressBar and Profiler for Webpack 3 and 4

License: MIT License

JavaScript 100.00%

webpackbar's Introduction

npm deps test test-windows coverage

Elegant ProgressBar and Profiler for Webpack

Display elegant progress bar while building or watch

Support of multiply concurrent builds (useful for SSR)

Pretty print filename and loaders

Windows compatible

Customizable

Advanced build profiler


Multi progress bars



Build Profiler


Getting Started

To begin, you'll need to install webpackbar:

Using npm:

npm install webpackbar -D

Using yarn:

yarn add webpackbar -D

Then add the reporter as a plugin to your webpack config.

webpack.config.js

const webpack = require('webpack');
const WebpackBar = require('webpackbar');

module.exports = {
  context: path.resolve(__dirname),
  devtool: 'source-map',
  entry: './entry.js',
  output: {
    filename: './output.js',
    path: path.resolve(__dirname)
  },
  plugins: [
    new WebpackBar()
  ]
};

Options

name

  • Default: webpack

Display name

color

  • Default: green

Display color (can be HEX like #xxyyzz or a web color like green).

profile

  • Default: false

Enable profiler.

stream

  • Default: process.stderr

Output stream.

minimal

  • Default: Auto enabled on CI, non-TTY and test environments

Hide progress bar and only show Compiling/Compiled messages.

compiledIn

  • Default: true

Show Compiled in message after build.

done

  • Type: Function(sharedState, ctx)

A function that will be called when all builds are finished.

Maintainers


Pooya Parsa

webpackbar's People

Contributors

audiolion avatar clarkdo avatar isnifer avatar pi0 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.