Demonstrate a simple Webpack setup (#5185)

This commit is contained in:
Shaun Luttin
2020-06-15 11:20:08 -07:00
committed by GitHub
parent f3b253af1c
commit 75a2b9a5cc
8 changed files with 6957 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ SwaggerUI({
})
```
See the [Webpack Getting Started](../samples/webpack-getting-started) sample for details.
In contrast, **`swagger-ui-dist`** is meant for server-side projects that need assets to serve to clients. The module, when imported, includes an `absolutePath` helper function that returns the absolute filesystem path to where the `swagger-ui-dist` module is installed.
_Note: we suggest using `swagger-ui` when your tooling makes it possible, as `swagger-ui-dist`