Vue CLI Plugin With Midway Hooks Development
This plugin is meant to provide all @midwayjs/faas-dev-pack options to vue-cli.
Installation
yarn add vue3-cli-plugin-midway-hooks# OR npm install vue3-cli-plugin-midway-hooks
Usage
// vue.config.jsmoduleexports = pluginOptions: isHooks: true // use hooks faas: // ...
Options
See midway faas dev pack for options
object to pass to the plugin.
Object examples
- default value, you can overwrite it.
// vue.config.jsmoduleexports = pluginOptions: faas: sourceDir: 'src/apis' // ignore function name ignoreWildcardFunctions: 'render' // ignore pattern { const pathname = URL; return /\.$/; } isHooks: true hooksRule: 'ts' 'js'
License
Vue CLI Plugin Midway Hooks is licensed under MIT License.