Actually fix Vite
parent
0888637c74
commit
aac0722b16
|
@ -4,9 +4,9 @@
|
|||
"version": "0.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
"dev": "vite src",
|
||||
"build": "vite build src",
|
||||
"preview": "vite preview src"
|
||||
},
|
||||
"devDependencies": {
|
||||
"glob": "^10.3.10",
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
import path from "path";
|
||||
import { glob } from "glob";
|
||||
import { defineConfig } from 'vite'
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
outDir: path.join(__dirname, "dist"),
|
||||
rollupOptions: {
|
||||
input: glob.sync(path.resolve(__dirname, "src", "*.html"))
|
||||
},
|
||||
},
|
||||
});
|
|
@ -1,12 +0,0 @@
|
|||
import path from "path";
|
||||
import glob from "glob";
|
||||
|
||||
export default {
|
||||
root: path.join(__dirname, "src"),
|
||||
build: {
|
||||
outDir: path.join(__dirname, "dist"),
|
||||
rollupOptions: {
|
||||
input: glob.sync(path.resolve(__dirname, "src", "**/*.html"))
|
||||
},
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue