-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcaido.config.ts
More file actions
81 lines (79 loc) · 2.13 KB
/
Copy pathcaido.config.ts
File metadata and controls
81 lines (79 loc) · 2.13 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 { defineConfig } from "@caido-community/dev";
import vue from "@vitejs/plugin-vue";
import tailwindcss from "tailwindcss";
// @ts-expect-error no declared types at this time
import tailwindPrimeui from "tailwindcss-primeui";
import tailwindCaido from "@caido/tailwindcss";
import path from "path";
import prefixwrap from "postcss-prefixwrap";
const id = "csp-auditor";
export default defineConfig({
id,
name: "CSP Auditor",
description: "Content Security Policy vulnerability scanner and analyzer",
version: "2.0.0",
author: {
name: "Caido Labs Inc.",
email: "dev@caido.io",
url: "https://caido.io",
},
plugins: [
{
kind: "backend",
id: "csp-auditor-backend",
root: "packages/backend",
},
{
kind: "frontend",
id: "csp-auditor-frontend",
root: "packages/frontend",
backend: {
id: "csp-auditor-backend",
},
vite: {
plugins: [vue()],
build: {
rollupOptions: {
external: [
"@caido/frontend-sdk",
"@codemirror/autocomplete",
"@codemirror/commands",
"@codemirror/language",
"@codemirror/lint",
"@codemirror/search",
"@codemirror/state",
"@codemirror/view",
"@lezer/common",
"@lezer/highlight",
"@lezer/lr",
"vue",
],
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "packages/frontend/src"),
},
},
css: {
postcss: {
plugins: [
prefixwrap(`#plugin--${id}`),
tailwindcss({
corePlugins: {
preflight: false,
},
content: [
"./packages/frontend/src/**/*.{vue,ts}",
"./node_modules/@caido/primevue/dist/primevue.mjs",
],
darkMode: ["selector", '[data-mode="dark"]'],
plugins: [tailwindPrimeui, tailwindCaido],
}),
],
},
},
},
},
],
});