-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add vite replace html plugin for graphiql plugin explorer (#3742)
* add vite replace html plugin for graphiql plugin explorer * fix build
- Loading branch information
1 parent
e432fb5
commit ffaf5c9
Showing
2 changed files
with
44 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,30 +38,27 @@ | |
></script> | ||
|
||
<script | ||
src="https://unpkg.com/graphiql@4.0.0-alpha.5/dist/index.umd.js" | ||
src="https://unpkg.com/graphiql/dist/index.umd.js" | ||
crossorigin | ||
></script> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/[email protected]/dist/style.css" | ||
/> | ||
<link rel="stylesheet" href="https://unpkg.com/graphiql/dist/style.css" /> | ||
|
||
<script | ||
src="https://unpkg.com/@graphiql/plugin-explorer@4.0.0-alpha.0/dist/index.umd.js" | ||
src="https://unpkg.com/@graphiql/plugin-explorer/dist/index.umd.js" | ||
crossorigin | ||
></script> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/@graphiql/plugin-explorer@4.0.0-alpha.0/dist/style.css" | ||
href="https://unpkg.com/@graphiql/plugin-explorer/dist/style.css" | ||
/> | ||
</head> | ||
|
||
<body> | ||
<div id="graphiql"> | ||
<div class="loading">Loading…</div> | ||
<div class="loading">Loading...</div> | ||
</div> | ||
|
||
<script> | ||
<script type="module"> | ||
const fetcher = GraphiQL.createFetcher({ | ||
url: 'https://swapi-graphql.netlify.app/.netlify/functions/index', | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters