/egg-nuxt-tool

用于渲染Nuxt工程的egg中间件

Primary LanguageJavaScriptMIT LicenseMIT

egg-nuxt-tool

NPM version Codacy Badge build status Test coverage David deps Known Vulnerabilities npm download License

Sonar

Install

$ npm i egg-nuxt-tool --save
// or
$ yarn add egg-nuxt-tool

Usage

// {app_root}/config/plugin.js
exports.nuxtTool = {
    enable: true,
    package: 'egg-nuxt-tool'
}

Configuration

// {app_root}/config/config.default.js
exports.nuxtTool = {
    whitePath: [/^\/java\//, '/public', '/graphql'], // whiteList
    ...nuxtConfig // nuxtConfig
    // ...
}

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT