Skip to content

Commit

Permalink
vite base url for gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gilnd committed May 31, 2021
1 parent 57fd1fc commit b93f4c5
Show file tree
Hide file tree
Showing 3 changed files with 272 additions and 14 deletions.
25 changes: 15 additions & 10 deletions packages/example/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
<head>
<base href="/vue3-smooth-dnd/">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>vue-smooth-dnd</title>
<style>
body {
margin: 0;
}
</style>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions packages/example/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
base: `/vue3-smooth-dnd/`,
plugins: [vue()]
})
Loading

0 comments on commit b93f4c5

Please sign in to comment.