-
Notifications
You must be signed in to change notification settings - Fork 228
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack documentation #321
Comments
Hi @airedwin can you share how are configuring the swagger-jsdoc with webpack? This error is commonly related with some mismatch on configuration specs and paths. |
@daniloab I got it working by having two configs, for local dev (no webpack build) I use the swagger-jsdoc object or whatever and for production (webpack bundling) i use a swagger.json that I generate at build time script with swagger-jsdoc cli ( it would be nice if i didn't have to do that |
keep same path with index.js => swaggerOptions.api, and you can find path in swagger webpack.config.js: optimization: { |
Is your feature request related to a problem? Please describe.
Is there an examples on how to get this working with webpack? I'm always getting the "No Operations Defined in Spec!" when I build with webpack. I think it is due to the path I specify options.apis isn't correct for webpack?
Describe the solution you'd like
An example using webpack
Describe alternatives you've considered
None
Additional context
None
The text was updated successfully, but these errors were encountered: