egg-nuxt-tool
v1.0.3
Published
egg plugin for nuxt render
Downloads
3
Maintainers
Readme
egg-nuxt-tool
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
rootDir: path.join(appInfo.baseDir, 'path/of/nuxtsite/root'),
srcDir: path.resolve(appInfo.baseDir, 'path/of/nuxtsite/root'),
modulesDir: path.resolve(appInfo.baseDir, 'path/of/nuxtsite/root/node_modules')
};
see config/config.default.js for more detail.
Example
Questions & Suggestions
Please open an issue here.