-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcaido.config.ts
More file actions
81 lines (77 loc) · 2.28 KB
/
Copy pathcaido.config.ts
File metadata and controls
81 lines (77 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import path from "path";
import tailwindCaido from "@caido/tailwindcss";
import { defineConfig } from "@caido-community/dev";
import vue from "@vitejs/plugin-vue";
import prefixwrap from "postcss-prefixwrap";
import tailwindcss from "tailwindcss";
import tailwindPrimeui from "tailwindcss-primeui";
const id = "notesplusplus";
export default defineConfig({
id,
name: "Notes++",
description: "Create and edit notes in Caido",
version: "2.3.2",
author: {
name: "_StaticFlow_",
email: "tanner.barnes@kashx.io",
url: "https://github.com/caido-community/NotesPlusPlus",
},
plugins: [
{
kind: "backend",
id: "backend",
root: "packages/backend",
},
{
kind: "frontend",
id: "frontend",
root: "packages/frontend",
backend: {
id: "backend",
},
vite: {
plugins: [vue()],
build: {
rollupOptions: {
external: ["@caido/frontend-sdk"],
},
},
resolve: {
alias: [
{
find: "@",
replacement: path.resolve(__dirname, "packages/frontend/src"),
},
],
},
css: {
postcss: {
plugins: [
// This plugin wraps the root element in a unique ID
// This is necessary to prevent styling conflicts between plugins
prefixwrap(`#plugin--${id}`),
tailwindcss({
corePlugins: {
preflight: false,
},
content: [
"./packages/frontend/src/**/*.{vue,ts}",
"./node_modules/@caido/primevue/dist/primevue.mjs",
],
// Check the [data-mode="dark"] attribute on the <html> element to determine the mode
// This attribute is set in the Caido core application
darkMode: ["selector", '[data-mode="dark"]'],
plugins: [
// This plugin injects the necessary Tailwind classes for PrimeVue components
tailwindPrimeui,
// This plugin injects the necessary Tailwind classes for the Caido theme
tailwindCaido,
],
}),
],
},
},
},
},
],
});