nuxtjs-webpackmonitor
v0.1.0
Published
Monitor Nuxt webpack optimization metrics through the development process
Downloads
7
Readme
Webpack Monitor Module
Monitor Nuxt webpack optimization metrics through the development process using webpackmonitor
Setup
Add
@nuxtjs/webpackmonitor
dependency using yarn or npm to your projectAdd
@nuxtjs/webpackmonitor
tomodules
section ofnuxt.config.js
{
modules: [
'@nuxtjs/webpackmonitor',
],
}
- Optionally add
.monitor
to.gitignore
file if you don't want to track reports with VCS.
Usage
This module automatically captures stats from each Production build into .monitor/stats.json
file if there was any diff.
You can use npx nuxt build --webpackmonitor
or yarn nuxt build --webpackmonitor
to launch monitor dashboard in your browser after build.
Options
To customize defaults you can add webpackMonitor
key to nuxt.config.js
.
See here for possible options.
License
Copyright (c) Nuxt.js Community - Pooya Parsa [email protected]