@constgen/neutrino-progress
v1.9.2
Published
Neutrino middleware showing a progressbar during the compilation
Downloads
21
Maintainers
Readme
@constgen/neutrino-progress
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()
]
}