We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d815104 commit c79f25cCopy full SHA for c79f25c
3 files changed
package.json
@@ -16,7 +16,7 @@
16
"main": "index.js",
17
"scripts": {
18
"dev": "vite",
19
- "build": "vite build ./src"
+ "build": "vite build"
20
},
21
"dependencies": {
22
"vite": "^8.0.13"
src/index.html
@@ -55,6 +55,6 @@
55
<button onclick="var a=10; alert(a);" class="uk-button uk-button-default">Button</button>
56
<button id="btnA" class="uk-button uk-button-default">btnA</button>
57
58
- <script type="module" src="/src/js/main.js"></script>
+ <script type="module" src="/js/main.js"></script>
59
</body>
60
</html>
vite.config.js
@@ -0,0 +1,9 @@
1
+import { defineConfig } from 'vite';
2
+
3
+export default defineConfig({
4
+ root: 'src',
5
+ build: {
6
+ outDir: '../dist',
7
+ emptyOutDir: true
8
+ }
9
+});
0 commit comments