Actually fix Vite
parent
0888637c74
commit
aac0722b16
|
@ -4,9 +4,9 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite src",
|
||||||
"build": "vite build",
|
"build": "vite build src",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview src"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"glob": "^10.3.10",
|
"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