All Projects → unjs → Webpackbar

unjs / Webpackbar

Licence: mit
Elegant ProgressBar and Profiler for Webpack 3 , 4 and 5

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Webpackbar

Wp Webpack Script
💥🔥📦👩‍💻 An easy to use, pre configured, hackable webpack setup & development server for WordPress themes and plugins.
Stars: ✭ 314 (-83.36%)
Mutual labels:  webpack, bundler
Webpack.js.org
Repository for webpack documentation and more!
Stars: ✭ 2,049 (+8.59%)
Mutual labels:  webpack, bundler
Auxpack
A dashboard for monitoring Webpack build stats.
Stars: ✭ 86 (-95.44%)
Mutual labels:  webpack, bundler
Carton
📦 Watcher, bundler, and test runner for your SwiftWasm apps
Stars: ✭ 171 (-90.94%)
Mutual labels:  webpack, bundler
Cloudflare Workers Webpack Boilerplate
A superbly simple, minimal-config template for building, bundling and deploying Cloudflare Workers with Webpack 🚀
Stars: ✭ 101 (-94.65%)
Mutual labels:  webpack, bundler
Webpack Bundle Analyzer
Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap
Stars: ✭ 11,472 (+507.95%)
Mutual labels:  webpack
Preact Minimal
🚀 Minimal preact structure
Stars: ✭ 136 (-92.79%)
Mutual labels:  webpack
Learning Article
学习资源 or 大前端导航,持续更新
Stars: ✭ 1,719 (-8.9%)
Mutual labels:  webpack
Dev Toolkit
Universal Development Toolkit for Javascript People
Stars: ✭ 134 (-92.9%)
Mutual labels:  webpack
Webpack Unused
Check your frontend code for files/assets that are no longer used.
Stars: ✭ 137 (-92.74%)
Mutual labels:  webpack
Spring Boot Vuejs
Example project showing how to build a Spring Boot App providing a GUI with Vue.js
Stars: ✭ 1,818 (-3.66%)
Mutual labels:  webpack
Webpack Guide
Webpack Handbook
Stars: ✭ 136 (-92.79%)
Mutual labels:  webpack
Dianpinplus
从零开始使用React全家桶开发电商系统
Stars: ✭ 135 (-92.85%)
Mutual labels:  webpack
Enb
Tool for building web projects, BEM bundler.
Stars: ✭ 136 (-92.79%)
Mutual labels:  bundler
Svg Sprite Loader
Webpack loader for creating SVG sprites.
Stars: ✭ 1,822 (-3.44%)
Mutual labels:  webpack
Speed Measure Webpack Plugin
⏱ See how fast (or not) your plugins and loaders are, so you can optimise your builds
Stars: ✭ 1,980 (+4.93%)
Mutual labels:  webpack
Webpack Internal Plugin Relation
🔎 a tiny tool to show the relation of webpack internal plugins & hooks
Stars: ✭ 135 (-92.85%)
Mutual labels:  webpack
Wean
🍀 小程序构建工具 ♂ 重新实现小程序标准 ♀ 小程序 => web
Stars: ✭ 125 (-93.38%)
Mutual labels:  bundler
Php Login System
Embeddable and Secure PHP Authentication System with Login, Signup, User Profiles, Profile Editing, Account Verification via Email, Password Reset System, Remember-Me Feature and more.
Stars: ✭ 135 (-92.85%)
Mutual labels:  profile
Monitaure
🔔 A server uptime monitoring progressive web application - NO LONGER MAINTAINED
Stars: ✭ 135 (-92.85%)
Mutual labels:  webpack

Standard JS npm version npm downloads package phobia github actions

Elegant ProgressBar and Profiler for Webpack

Display elegant progress bar while building or watch

Support of multiple concurrent builds (useful for SSR)

Pretty print filename and loaders

Windows compatible

Fully customizable using reporters

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

Name.

color

  • Default: green

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

profile

  • Default: false

Enable profiler.

fancy

  • Default: true when not in CI or testing mode.

Enable bars reporter.

basic

  • Default: true when running in minimal environments.

Enable a simple log reporter (only start and end).

reporter

Register a custom reporter.

reporters

  • Default: []

Register an Array of your custom reporters. (Same as reporter but array)

Custom Reporters

Webpackbar comes with a fancy progress-bar out of the box. But you may want to show progress somewhere else or provide your own.

For this purpose, you can provide one or more extra reporters using reporter and reporters options.

NOTE: If you plan to provide your own reporter, don't forget to setting fancy and basic options to false to prevent conflicts.

A reporter should be instance of a class or plain object and functions for special hooks. It is not necessary to implement all functions, webpackbar only calls those that exists.

Simple logger:

{
 start(context) {
   // Called when (re)compile is started
 },
 change(context) {
   // Called when a file changed on watch mode
 },
 update(context) {
   // Called after each progress update
 },
 done(context) {
   // Called when compile finished
 },
 progress(context) {
   // Called when build progress updated
 },
 allDone(context) {
   // Called when _all_ compiles finished
 },
 beforeAllDone(context) {
 },
 afterAllDone(context) {
 },
}

context is the reference to the plugin. You can use context.state to access status.

Schema of context.state:

{
  start,
  progress,
  message,
  details,
  request,
  hasErrors
}

License

MIT - Made with 💖 By Nuxt.js team!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].