mirror of
https://github.com/halo-dev/theme-earth.git
synced 2026-01-13 07:03:50 +08:00
* Optimize settings form and remove deprecated options * Update required version to 2.22.0 in theme.yaml The minimum required version for this theme has been updated from 2.20.0 to 2.22.0 to ensure compatibility with newer dependencies or features. * Update icon rendering to use icon.value property
21 lines
484 B
TypeScript
21 lines
484 B
TypeScript
import { defineConfig } from "vite";
|
|
import { fileURLToPath } from "node:url";
|
|
import path from "node:path";
|
|
|
|
export default defineConfig({
|
|
experimental: {
|
|
enableNativePlugin: true,
|
|
},
|
|
build: {
|
|
outDir: fileURLToPath(new URL("./templates/assets/dist", import.meta.url)),
|
|
emptyOutDir: true,
|
|
lib: {
|
|
entry: path.resolve(__dirname, "src/main.ts"),
|
|
name: "main",
|
|
fileName: "main",
|
|
formats: ["iife"],
|
|
cssFileName: "style",
|
|
},
|
|
},
|
|
});
|