feat: text editor and blog post

This commit is contained in:
nobody 2025-11-01 12:08:03 -07:00
commit 78297efe5c
Signed by: GrocerPublishAgent
GPG key ID: D460CD54A9E3AB86
17 changed files with 2008 additions and 24 deletions

View file

@ -6,6 +6,7 @@ import { defineConfig, type UserConfig } from "vite";
import { qwikVite } from "@builder.io/qwik/optimizer";
import { qwikCity } from "@builder.io/qwik-city/vite";
import tsconfigPaths from "vite-tsconfig-paths";
import tailwindcss from '@tailwindcss/vite'
import pkg from "./package.json";
type PkgDep = Record<string, string>;
@ -21,7 +22,8 @@ errorOnDuplicatesPkgDeps(devDependencies, dependencies);
*/
export default defineConfig(({ command, mode }): UserConfig => {
return {
plugins: [qwikCity(), qwikVite(), tsconfigPaths({ root: "." })],
base: mode === 'production' ? '/p/salience-editor/' : '/',
plugins: [qwikCity(), qwikVite(), tsconfigPaths({ root: "." }), tailwindcss()],
// This tells Vite which dependencies to pre-build in dev mode.
optimizeDeps: {
// Put problematic deps that break bundling here, mostly those with binaries.