generated from alecodes/base-template
wip: handle vite tooling manually
This commit is contained in:
parent
9c1a8f030c
commit
e8f111c2ff
11 changed files with 134 additions and 71 deletions
|
|
@ -1,6 +1,9 @@
|
|||
import {defineConfig} from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
root: "frontend/assets",
|
||||
publicDir: "frontend/static",
|
||||
base: "/public/assets",
|
||||
plugins: [],
|
||||
server: {
|
||||
port: 3001,
|
||||
|
|
@ -8,6 +11,9 @@ export default defineConfig({
|
|||
cors: true,
|
||||
},
|
||||
build: {
|
||||
outDir: "../../public", // outDir is relative to the root config
|
||||
assetsDir: "assets",
|
||||
emptyOutDir: true,
|
||||
manifest: true,
|
||||
rollupOptions: {
|
||||
input: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue