2.0.1 • Published 5 years ago

nuxt-webpackdashboard v2.0.1

Weekly downloads
11
License
MIT
Repository
github
Last release
5 years ago

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,
  },
}
2.0.1

5 years ago

2.0.0

5 years ago

1.0.0

6 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago