nuxt-webpackdashboard

2.0.1 • Public • Published

Webpack Dashboard Module

Webpack Dashboard integration for Nuxt

Install

Install the package:

yarn add nuxt-webpackdashboard -D
# or npm i nuxt-webpackdashboard -D 

Setup

  • Add nuxt-webpackdashboard to nuxt.config.js:
// nuxt.config.js
 
{
  modules: [
    'nuxt-webpackdashboard',
  ],
}
  • In package.json, modify the dev script to run with webpack-dashboard:
{
  "scripts": {
    "dev": "webpack-dashboard -- nuxt",
  },
}

Options

CLI options can be added in your package.json:

{
  "scripts": {
    "dev": "webpack-dashboard -m -- nuxt",
  },
}

Webpack plugin options can be passed to Webpack Dashboard in Nuxt config's modules sections:

// nuxt.config.js
 
{
  modules: [
    ['webpackdashboard-module', {
      port: 3001,
    }],
  ],
}

Or by adding a webpackDashboard key:

// nuxt.config.js
 
{
  webpackDashboard: {
    port: 3001,
  },
}

Readme

Keywords

none

Package Sidebar

Install

npm i nuxt-webpackdashboard

Weekly Downloads

11

Version

2.0.1

License

MIT

Unpacked Size

4.3 kB

Total Files

6

Last publish

Collaborators

  • paulgv