swagger-jsdoc-webpack-plugin
Advanced tools
Weekly downloads
Readme
webpack.json
const SwaggerJSDocWebpackPlugin = require('swagger-jsdoc-webpack-plugin');
module.exports = {
...
plugins: [
new SwaggerJSDocWebpackPlugin({
definition: {
openapi: '3.0.0',
info: {
title: 'Title',
version: '1.0.0',
description: 'Description',
},
},
apis: ['./src/routes/**/*.js'],
}),
...
],
...
}
This writes a swagger.json
file in your output folder.
outputFile?: string
The path of the generated swagger file. Default: "swagger.json"
All other options are directly passed to swagger-jsdoc.
FAQs
A webpack plugin to generate a swagger.json file from jsdoc
The npm package swagger-jsdoc-webpack-plugin receives a total of 651 weekly downloads. As such, swagger-jsdoc-webpack-plugin popularity was classified as not popular.
We found that swagger-jsdoc-webpack-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.