jensoleg / swagger-ui

Swagger UI is a dependency-free collection of HTML, Javascript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
http://swagger.io
Other
1.13k stars 310 forks source link

How to re-publish updated source? #78

Open sohailrazaqau opened 7 years ago

sohailrazaqau commented 7 years ago

Can anyone guide me please, how to publish swagger (getting and updated /dist) after adding come custom code in template (src/main/template) files?

rbwrightjr91 commented 7 years ago

I believe the command is 'gulp dist' (must have gulp and associated plug-ins installed via npm) but it completely breaks when I run it. Be sure to have a backup of the dist folder.

This is what it looks like when I run 'gulp dist': image

rbwrightjr91 commented 7 years ago

After testing some more, it seems you just run 'gulp' but it still breaks. Chrome shows an error about not being able to generate the swagger ui javascript file.