@freyr/webpack-reporter
Cleaner webpack reporter with a little more personality
Last updated 3 years ago by jesseweed .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @freyr/webpack-reporter 
SYNC missed versions from official npm registry.

Freyr Webpack Reporter

Simplifies webpack logs, and adds a little personality

Usage

Note, for best results set stats: 'errors-only' in the root of your webpack config. If you're using webpack-dev-server, you should also set stats: 'errors-only', inside of devServer options.

const Reporter = require('@freyr/webpack-reporter')

plugins: [
  new Reporter({
    devserver: {
      env: ENV,
      host: IP_ADDRESS,
      port: port
    },
    gifs: CONFIG.gifs
  })
]

NOTE: All options are...optional.

OPTIONS

gifs

Enable gifs to spice up the terminal output (require iterm3+)

Default: false

devserver

If you're running webpack dev server, or a custom server, you can pass the details here to let the reporter know about it

Default: false

If you pass true if will fallback to defaults, but you can override any of them:

Options: false

  • env
    • Default: process.env.NODE_ENV or 'development'
  • host
    • Default: Current Node IP address.
  • port
    • Default: process.env.PORT or 3000

Current Tags

  • 0.2.2                                ...           latest (3 years ago)

3 Versions

  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 6
Last Day 0
Last Week 3
Last Month 1
Dependencies (9)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |