All Projects → mohsenshafiei → webpack-shower

mohsenshafiei / webpack-shower

Licence: MIT license
🚿 Clean up, Arrange, Filter Webpack Stats

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to webpack-shower

size-plugin-bot
A Github bot for size-plugin
Stars: ✭ 76 (+533.33%)
Mutual labels:  webpack-plugin
AntiBot
Lightweight BungeeCord plugin that aims to stop attacks on your server quickly and efficiently.
Stars: ✭ 42 (+250%)
Mutual labels:  stats
generate-package-json-webpack-plugin
Generates a package.json file containing the external modules used by your webpack bundle
Stars: ✭ 59 (+391.67%)
Mutual labels:  webpack-plugin
npm-statistics
NPM Download Statistics for ClearTax Open Source Projects
Stars: ✭ 26 (+116.67%)
Mutual labels:  stats
image-sprite-webpack-plugin
A webpack plugin that generates spritesheets from your stylesheets.
Stars: ✭ 27 (+125%)
Mutual labels:  webpack-plugin
build-stats
🏆 get the build stats for pipelines 🏆
Stars: ✭ 79 (+558.33%)
Mutual labels:  stats
webpack-stats-diff-plugin
Webpack plugin for reporting changes in bundle sizes across builds
Stars: ✭ 63 (+425%)
Mutual labels:  webpack-plugin
flow-webpack-plugin
A webpack plugin allowing to call Flow type checker.
Stars: ✭ 36 (+200%)
Mutual labels:  webpack-plugin
2018-package-three-webpack-plugin
[ARCHIVED] Webpack plugin to use Three.js "examples" classes
Stars: ✭ 45 (+275%)
Mutual labels:  webpack-plugin
exhale
A Pebble app for breathing, written in C.
Stars: ✭ 12 (+0%)
Mutual labels:  stats
css-chunks-html-webpack-plugin
Injecting css chunks extracted using extract-css-chunks-webpack-plugin to HTML for html-webpack-plugin
Stars: ✭ 22 (+83.33%)
Mutual labels:  webpack-plugin
repoxplorer
RepoXplorer - Git stats explorer
Stars: ✭ 109 (+808.33%)
Mutual labels:  stats
stylelint-bare-webpack-plugin
Stylelint plugin for webpack
Stars: ✭ 15 (+25%)
Mutual labels:  webpack-plugin
github-stats
🌟 GitHub Stats is all about stars, forks, repos, followers and more
Stars: ✭ 89 (+641.67%)
Mutual labels:  stats
tukey
Mini stats toolkit for Clojure/Script
Stars: ✭ 17 (+41.67%)
Mutual labels:  stats
monaco-editor-esm-webpack-plugin
No description or website provided.
Stars: ✭ 25 (+108.33%)
Mutual labels:  webpack-plugin
webpack2-externals-plugin
Webpack 2+ fork of Webpack-Externals-Plugin
Stars: ✭ 14 (+16.67%)
Mutual labels:  webpack-plugin
ovrstat
🎮 An Unofficial Overwatch Stats API
Stars: ✭ 96 (+700%)
Mutual labels:  stats
copernicus
A windows tray application for the Pi-Hole advertising-aware DNS/web server
Stars: ✭ 64 (+433.33%)
Mutual labels:  stats
autumn
autumn: Fast, Modern, and Tidy-Friendly Iterative Raking in R.
Stars: ✭ 26 (+116.67%)
Mutual labels:  stats

version node travis downloads MIT LICENSE semantic-release

It gives you the ability to remove annoying Webpack outputs and organize, filter and prioritize those reports that we need.

Installation

npm install webpack-shower --save-dev

What is in it for me?

We all know that Webpack output is cool enough but we can turn that huge data to something useful like this:

With Webpack-Shower you can remove those stats that are repetitive, annoying and noisy.

Configuration

First you need to silent default Webpack output like below

// add to webpack.config.js
stats: {
    all: false
}

Second add the Webpack-Shower plugin to your Webpack configuration file

const WebpackShower = require('webpack-shower');

plugins: [new WebpackShower()];

Filtering Stats

To filter annoying stats and annoying outputs

plugins: [
  new WebpackShower({
      assetsToFilter: [
        '*.img', // filter based extension
        'hi.png', // string
        '/[h]/g' // passing regex
      ],
  })
]

available options are :

  • modulesToFilter
  • assetsToFilter
  • warningsToFilter
  • errorsToFilter
  • entrypointsToFilter

Sorting Stats

You can sort assets and modules based on their size. In default mode, Webpack-Shower doesn't sort assets and modules.

plugins: [
  new WebpackShower({
      sortAssets: true,
      sortModules: true,
  });
]

Modes

There are different modes to use. In default mode, webpack-shower use normal mode. If you want to use webpack-shower for reporting in other environments like Jenkins and etc it is better to set mode: 'table'.

plugins: [
  new WebpackShower({
    mode: 'table'
  });
]
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].