@constgen/neutrino-progress

1.9.2 • Public • Published

@constgen/neutrino-progress

npm npm

Neutrino middleware that adds a developer-friendly building progress bar

Features

  • Minimalistic output during development
  • Only useful information on production
  • Hide source maps from the Assets table
  • Sort Assets table

Requirements

  • Node.js v10+
  • Neutrino v9
  • Webpack v4

Installation

@constgen/neutrino-progress can be installed from NPM. You should install it to "dependencies" (--save) or "devDependncies" (--save-dev) depending on your goal.

npm install --save @constgen/neutrino-progress

Usage

In preset

Require this package and plug it into Neutrino. The following shows how you can pass an options object to the middleware, showing the defaults:

let progress = require('@constgen/neutrino-progress')

neutrino.use(progress({
   name : '', // application name to label the progress bar; fallsback to the information from package.json
   color: 'green' // progress bar color
}))

In neutrinorc

The middleware also may be used together with another presets in Neutrino rc-file, e.g.:

.neutrinorc.js

let progress = require('@constgen/neutrino-progress')

module.exports = {
   use: [
      progress()
   ]
}

Package Sidebar

Install

npm i @constgen/neutrino-progress

Weekly Downloads

6

Version

1.9.2

License

GPL-3.0

Unpacked Size

39.3 kB

Total Files

4

Last publish

Collaborators

  • constgen