hello-hyh / interface-portal

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interface-portal-plugin

Install

npm install interface-portal-plugin

Feat

add cache feat.

Usage

in your webpack config file

const InterfacePortalPlugin = require("interface-portal-plugin");
...

plugins: [
  ... // other plugin
  new InterfacePortalPlugin({ apitPath: 'your openapi json path' })
  ],

when your build project with watch mode, the swagger_interface dir well be create, end use import interface to your .ts file.

please don't push swagger_interface dir to your code repository.

About


Languages

Language:JavaScript 89.1%Language:TypeScript 10.9%