0.0.5 • Published 1 year ago

egg-vite v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

egg-vite

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

Install

$ npm i egg-vite --save

Usage

// {app_root}/config/plugin.js
exports.vite = {
  enable: true,
  package: 'egg-vite',
};

Configuration

// {app_root}/config/config.local.js
config.vite = {
    // default默认是false,就不会启动vite服务
    devServer: true,
    targets: [
      /^(\/node_modules)/g,
      '/assets/(.*)'
    ],
    inlineConfig:{}
  }

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

Example

Questions & Suggestions

Please open an issue here.

License

MIT