mirror of
https://code.castopod.org/adaures/castopod.git
synced 2024-09-11 12:58:04 +02:00
- replace rollup config with vitejs - use vite dev server during development to take advantage of hot module replacement (HMR) - add vite service using Vite library to load css and js assets - update package.json scripts and remove unnecessary dependencies - update scripts/bundle-prepare.sh closes #107
25 lines
659 B
TypeScript
25 lines
659 B
TypeScript
import { defineConfig } from "vite";
|
|
import { ManifestCSS } from "./vite-manifest-css";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
root: "./app/Resources",
|
|
base: "/assets/",
|
|
build: {
|
|
outDir: "../../public/assets",
|
|
assetsDir: "",
|
|
manifest: true,
|
|
sourcemap: true,
|
|
rollupOptions: {
|
|
input: {
|
|
"podcast.ts": "app/Resources/js/podcast.ts",
|
|
"install.ts": "app/Resources/js/install.ts",
|
|
"admin.ts": "app/Resources/js/admin.ts",
|
|
"charts.ts": "app/Resources/js/charts.ts",
|
|
"styles/index.css": "app/Resources/styles/index.css",
|
|
},
|
|
},
|
|
},
|
|
plugins: [ManifestCSS()],
|
|
});
|