Experiment to rebuild Diffuse using web applets.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 41 lines 1.2 kB view raw
1import { defineConfig } from "astro/config"; 2import { fileURLToPath } from "node:url"; 3import scope from "astro-scope"; 4import path from "node:path"; 5import tsconfigPaths from "vite-tsconfig-paths"; 6import wasm from "vite-plugin-wasm"; 7 8import purgecss from "astro-purgecss"; 9 10const __filename = fileURLToPath(import.meta.url); 11const __dirname = path.dirname(__filename); 12 13export default defineConfig({ 14 integrations: [scope(), purgecss()], 15 build: { 16 inlineStylesheets: "never", 17 }, 18 vite: { 19 plugins: [tsconfigPaths(), wasm()], 20 server: { 21 hmr: false, 22 }, 23 build: { 24 target: "esnext", 25 }, 26 resolve: { 27 alias: { 28 "@applets": path.resolve(__dirname, "./src/pages"), 29 "@layouts": path.resolve(__dirname, "./src/layouts"), 30 "@pages": path.resolve(__dirname, "./src/pages"), 31 "@scripts": path.resolve(__dirname, "./src/scripts"), 32 "@styles": path.resolve(__dirname, "./src/styles"), 33 "@src": path.resolve(__dirname, "./src"), 34 "@phosphor-icons": path.resolve(__dirname, "./node_modules/@phosphor-icons/web/src"), 35 }, 36 }, 37 worker: { 38 format: "es", 39 }, 40 }, 41});