generated from alecodes/base-template
refactor: change assets handling to vite-rs
chore: update dev environment wip: handle vite tooling manually
This commit is contained in:
parent
14a4d9b2b3
commit
af709f2e72
26 changed files with 406 additions and 389 deletions
|
|
@ -1,8 +1,20 @@
|
|||
import {defineConfig} from "vite";
|
||||
|
||||
export default defineConfig({
|
||||
root: "frontend/assets",
|
||||
publicDir: "frontend/static",
|
||||
base: "/public/assets",
|
||||
plugins: [],
|
||||
server: {
|
||||
port: 3001,
|
||||
origin: 'http://localhost:3000',
|
||||
cors: true,
|
||||
},
|
||||
build: {
|
||||
outDir: "../../public", // outDir is relative to the root config
|
||||
assetsDir: "assets",
|
||||
emptyOutDir: true,
|
||||
manifest: true,
|
||||
rollupOptions: {
|
||||
input: [
|
||||
"frontend/assets/js/index.ts",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue