egg-vite

0.0.5 • Public • Published

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

Package Sidebar

Install

npm i egg-vite

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

8.22 kB

Total Files

9

Last publish

Collaborators

  • yokiyokiyoki