Files
component-party/vite.config.js
Mathieu Schimmerling be52cbcbfc refactor: migrate from astro to svelte + vite to improve performance (#131)
* 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
2023-01-03 01:36:47 +01:00

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,
}),
],
});