mirror of
https://github.com/lainbo/component-party.git
synced 2026-04-05 04:59:02 +08:00
* add highlighter * add playground url * add markdown support and notification center * fix multiple md files * add meta description with framework list * fix: framework id loop index * store frameworkIdsSelected in locale storage * add generateFrameworkContent vite plugin * add missing snippet case * add content generate cache * add angular component highlighter * improve content generator organization * add format and linter * add git hooks * add default frameworks
29 lines
723 B
JavaScript
29 lines
723 B
JavaScript
import { defineConfig } from "vite";
|
|
import { svelte } from "@sveltejs/vite-plugin-svelte";
|
|
import sveltePreprocess from "svelte-preprocess";
|
|
import { createHtmlPlugin } from "vite-plugin-html";
|
|
import FRAMEWORKS from "./frameworks.mjs";
|
|
import pluginGenerateFrameworkContent from "./build/generateContentVitePlugin.js";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
pluginGenerateFrameworkContent(),
|
|
svelte(),
|
|
createHtmlPlugin({
|
|
minify: true,
|
|
inject: {
|
|
data: {
|
|
frameworkList: FRAMEWORKS.map((f) => f.title).join(", "),
|
|
},
|
|
},
|
|
}),
|
|
],
|
|
ignore: ["content"],
|
|
preprocess: [
|
|
sveltePreprocess({
|
|
postcss: true,
|
|
}),
|
|
],
|
|
});
|