All Projects → webpack-contrib → Webpack Stylish

webpack-contrib / Webpack Stylish

Licence: mit
A stylish, optionated reporter for webpack

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Webpack Stylish

Webpack Static Html Pages
Webpack template/example with multiple static html pages
Stars: ✭ 202 (-2.42%)
Mutual labels:  webpack
Docker Web Framework Examples
Example apps that demonstate how to use Docker with your favorite web frameworks.
Stars: ✭ 204 (-1.45%)
Mutual labels:  webpack
String Replace Loader
Replace loader for Webpack
Stars: ✭ 205 (-0.97%)
Mutual labels:  webpack
Webpacker React
Webpacker plugin to integrate React in your Rails application
Stars: ✭ 201 (-2.9%)
Mutual labels:  webpack
Nowa Gui
Stars: ✭ 202 (-2.42%)
Mutual labels:  webpack
Heyui
🎉UI Toolkit for Web, Vue2.0 http://www.heyui.top
Stars: ✭ 2,373 (+1046.38%)
Mutual labels:  webpack
Website
Techqueria is a nonprofit the serves the largest community of Latinx in Tech
Stars: ✭ 200 (-3.38%)
Mutual labels:  webpack
Scalajs Bundler
Stars: ✭ 206 (-0.48%)
Mutual labels:  webpack
Yfiles For Html Demos
Contains demo sources for the JavaScript diagramming library yFiles for HTML
Stars: ✭ 202 (-2.42%)
Mutual labels:  webpack
Webpack Dashboard
A CLI dashboard for webpack dev server
Stars: ✭ 13,850 (+6590.82%)
Mutual labels:  webpack
Vuesion
Vuesion is a boilerplate that helps product teams build faster than ever with fewer headaches and modern best practices across engineering & design.
Stars: ✭ 2,510 (+1112.56%)
Mutual labels:  webpack
Js Library Boilerplate
Javascript Starter Boilerplate - Webpack 4, Babel 7, UMD, Hot Reloading, and more
Stars: ✭ 202 (-2.42%)
Mutual labels:  webpack
Front End Guide
📚 Study guide and introduction to the modern front end stack.
Stars: ✭ 14,073 (+6698.55%)
Mutual labels:  webpack
Vue Web Cam
Webcam component for VueJs.
Stars: ✭ 201 (-2.9%)
Mutual labels:  webpack
Firefly
Web app boilerplate for beginners based on Firebase and React 🔥
Stars: ✭ 204 (-1.45%)
Mutual labels:  webpack
Webpackbin
[Deprecated]. Please move to codesandbox.io.
Stars: ✭ 200 (-3.38%)
Mutual labels:  webpack
Preact Worker Demo
Demo of preact rendering an entire app in a Web Worker.
Stars: ✭ 204 (-1.45%)
Mutual labels:  webpack
React Cordova Boilerplate
TodoMVC example for react with development tools to build a cordova application
Stars: ✭ 206 (-0.48%)
Mutual labels:  webpack
Vue2.0 Multi Page
基于vue-cli(vue2.X,webpack1.X,es6,sass环境)多页面开发
Stars: ✭ 206 (-0.48%)
Mutual labels:  webpack
Electron Vue
An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
Stars: ✭ 14,610 (+6957.97%)
Mutual labels:  webpack

npm node deps tests chat

webpack-stylish

ℹ️ DEPRECATION. Reporters moved into webpack-cli as feature. The issue for webpack-cli https://github.com/webpack/webpack-cli/issues/575.

A stylish, opinionated reporter for webpack.

Compared to the default output:

Let's be honest, the default build output for webpack wouldn't exactly hang in the Louvre. Great tools should have beautiful output. This reporter is specifically structured to present common, important¹ information about a build in a visually pleasing and easy-to-read format and style.

¹ subjective, but based on shared experiences.

Getting Started

To begin, you'll need to install webpack-stylish:

$ npm install webpack-stylish --save-dev

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

const path = require('path');
const webpack = require('webpack');
const Stylish = require('webpack-stylish');

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

MultiCompilers

If you use a config that consists of an array of configs (aka. MultiCompiler), we recommend using a single instance of the reporter across all configs. eg;

const StylishReporter = require('webpack-stylish');
const stylish = new StylishReporter();

module.exports = [
  {
    ...
    plugins: [
      new webpack.NamedModulesPlugin(),
      stylish
    ]
  },
  {
    ...
    plugins: [
      new webpack.NamedModulesPlugin(),
      stylish
    ]
  }
];

Internally, the reporter will keep track of the compiler instances it's been added to and will display summary information for all compilers. If you don't use a single, shared instance of the reporter, you're going to see a lot of duplicate information, and that'd just be silly.

Webpack CLI

Because webpack-cli reads the stats config property before the compilation starts, it tends to go on doing it's own thing. When using webpack-stylish in a config that you're running via the CLI, you need to add stats: 'none' to the config. Otherwise you'll see both this reporter's output, and the CLI's.

Options

There are none! If you're in need of fine-grained control of webpack's build information out, please don't use this reporter. Instead, you can fine-tune webpack's default output via the stats config property.

Gotchas

The webpack-stylish reporter will straight up ignore the stats property in your webpack config, if you have one set. (This reporter is opinionated!).

Naughty Loaders and Plugins

Some loaders and plugins are going to need a spanking. For they have been naughty and are pushing wonky formatting and multiple-errors-packed-into-one errors onto a compliation's error and/or warning stacks. webpack-stylish does it's best to compensate for that, but be aware that some plugins will cause some wonky output. For example, stylelint-webpack-plugin is guilty of this.

It's impossible for us to test the world (aka. every plugin ever) so if you see something off, please open an issue and let us know. We'll either compensate further in the code here, or try to bring the offending plugin or loader into the light.

Contributing

We welcome your contributions! Please have a read of CONTRIBUTING.md for more information on how to get involved.

License

MIT

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].