title: What is the difference between SwaggerUIBundle, and SwaggerUi
body: <p>I've seen both in samples I've found and haven't seen how they are different.  Is the bundle needed if you are using this in an HTML page only (not using a single-page-app) or is that the one to use if you are using a single-page-app?</p>
  
  <p>The <a href="https://github.com/swagger-api/swagger-ui" rel="noreferrer">Swagger UI docs</a> discuss two ways to deploy swagger-ui.</p>
  
  <ul>
  <li><p><a href="https://www.npmjs.com/package/swagger-ui" rel="noreferrer">traditional npm</a> - swagger-ui</p></li>
  <li><p><a href="https://www.npmjs.com/package/swagger-ui-dist" rel="noreferrer">dependency-free module</a> - swagger-ui-dist</p></li>
  </ul>
  
  <p>I've seen examples <a href="https://github.com/swagger-api/swagger-ui/blob/master/dist/index.html" rel="noreferrer">like this one</a> where SwaggerUIBundle is used on what appears to be a web page hosted in tomcat (python, or some other web server) example.  </p>
  
  <pre><code>&lt;script src="./swagger-ui-bundle.js"&gt; &lt;/script&gt;
  // later
  &lt;script&gt;
  window.onload = function() {
    // Build a system
    const ui = SwaggerUIBundle({
      url: "https://petstore.swagger.io/v2/swagger.json",
  </code></pre>
  
  <p>But also seen <a href="https://stackoverflow.com/a/29497301/3281336">examples like this</a> one that use SwaggerUi.</p>
  
  <pre><code>window.swaggerUi = new SwaggerUi({
    url: "http://petstore.swagger.wordnik.com/api/api-docs",
    dom_id: "swagger-ui-container",
  </code></pre>
  
  <p>A search returns things like:</p>
  
  <ul>
  <li><p>swagger-ui-bundle.js - <a href="https://github.com/swagger-api/swagger-ui/issues/3978" rel="noreferrer">https://github.com/swagger-api/swagger-ui/issues/3978</a> </p></li>
  <li><p>SwaggerUi - <a href="https://stackoverflow.com/a/29497301/3281336">https://stackoverflow.com/a/29497301/3281336</a> </p></li>
  <li><p>SwaggerUIBundle - <a href="https://github.com/swagger-api/swagger-ui/wiki/FAQ" rel="noreferrer">https://github.com/swagger-api/swagger-ui/wiki/FAQ</a></p></li>
  </ul>