https://github.com/midwayjs/vue-cli-plugin-faas
Vue CLI Plugin For Midway FaaS
https://github.com/midwayjs/vue-cli-plugin-faas
Last synced: over 1 year ago
JSON representation
Vue CLI Plugin For Midway FaaS
- Host: GitHub
- URL: https://github.com/midwayjs/vue-cli-plugin-faas
- Owner: midwayjs
- License: mit
- Created: 2020-05-14T03:45:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T16:15:05.000Z (over 4 years ago)
- Last Synced: 2024-04-25T02:41:17.128Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 16
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: History.md
- License: LICENSE
Awesome Lists containing this project
README
Vue CLI Plugin With Midway FaaS Development
This plugin is meant to provide all @midwayjs/faas-dev-pack options to vue-cli.
## Installation
``` bash
yarn add vue-cli-plugin-faas
# OR npm install vue-cli-plugin-faas
```
## Usage
```js
// vue.config.js
module.exports = {
pluginOptions: {
faas: {
// ...
}
}
}
```
## Options
See [midway faas dev pack](https://github.com/midwayjs/midway-faas/tree/master/packages/faas-dev-pack) for `options` object to pass to the plugin.
### Object examples
* default value, you can overwrite it.
```js
// vue.config.js
module.exports = {
pluginOptions: {
faas: {
sourceDir: 'src/apis',
// ignore function name
ignoreWildcardFunctions: ['render'],
// ignore pattern
ignorePattern: (req) => {
const { pathname } = URL.parse(req.url);
return /\.(js|css|map|json|png|jpg|jpeg|gif|svg|eot|woff2|ttf)$/.test(pathname);
}
}
}
}
```
## License
Vue CLI Plugin FaaS is licensed under [MIT License](./LICENSE).