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

@@ -0,0 +1,15 @@
import SwaggerUI from 'swagger-ui'
import 'swagger-ui/dist/swagger-ui.css';
const spec = require('./swagger-config.yaml');
const ui = SwaggerUI({
spec,
dom_id: '#swagger',
});
ui.initOAuth({
appName: "Swagger UI Webpack Demo",
// See https://demo.identityserver.io/ for configuration details.
clientId: 'implicit'
});