The Wayback Machine - https://web.archive.org/web/20200913203359/https://github.com/midwayjs/vue-cli-plugin-faas
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Vue CLI Plugin With Midway FaaS Development

This plugin is meant to provide all @midwayjs/faas-dev-pack options to vue-cli.

NPM Version NPM Downloads License

Installation

yarn add vue-cli-plugin-faas
# OR npm install vue-cli-plugin-faas

Usage

// vue.config.js
module.exports = {
  pluginOptions: {
    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.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.

About

Vue CLI Plugin For Midway FaaS

Resources

License

Packages

No packages published
You can’t perform that action at this time.