Skip to content

Commit 26ceaf6

Browse files
author
Sebi Nemeth
committed
add demo build
1 parent d3eb562 commit 26ceaf6

File tree

6 files changed

+96
-0
lines changed

6 files changed

+96
-0
lines changed

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
. "$(dirname -- "$0")/_/husky.sh"
33

44
npm run build
5+
npm run build:demo
56
git add -A dist
7+
git add -A dist-demo

dist-demo/assets/index-1sJnehzo.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist-demo/assets/index-o1xYSRhY.js

Lines changed: 76 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist-demo/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Vue i18n Live Translator plugin</title>
7+
<script type="module" crossorigin src="/assets/index-o1xYSRhY.js"></script>
8+
<link rel="stylesheet" crossorigin href="/assets/index-1sJnehzo.css">
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
</body>
13+
</html>

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"types": "./dist/index.d.ts",
77
"scripts": {
88
"dev": "vite",
9+
"build:demo": "vite build",
910
"build": "tsc --declaration",
1011
"test": "echo \"Error: no test specified\" && exit 1",
1112
"prepare": "husky install"

vite.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ import vue from '@vitejs/plugin-vue'
44
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [vue()],
7+
build: {
8+
outDir: 'dist-demo'
9+
}
710
})

0 commit comments

Comments
 (0)