-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvite.config.ts.timestamp-1677222806837.mjs
67 lines (65 loc) · 8.36 KB
/
vite.config.ts.timestamp-1677222806837.mjs
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
// vite.config.ts
import { defineConfig as defineConfig2, loadEnv } from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/vite/dist/node/index.js";
import tsconfigPaths from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/vite-tsconfig-paths/dist/index.mjs";
import react from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/@vitejs/plugin-react/dist/index.mjs";
import unocss from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/@unocss/vite/dist/index.mjs";
// unocss.config.ts
import presetUno from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/@unocss/preset-uno/dist/index.mjs";
import presetIcons from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/@unocss/preset-icons/dist/index.mjs";
import transformerVariantGroup from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/@unocss/transformer-variant-group/dist/index.mjs";
import { defineConfig } from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/unocss/dist/index.mjs";
var cols = Array(5).fill(0).map((_, i) => `grid-cols-${i + 1}`).join(" ");
var rows = Array(5).fill(0).map((_, i) => `grid-rows-${i + 1}`).join(" ");
var config = defineConfig({
presets: [presetIcons(), presetUno()],
transformers: [transformerVariantGroup()],
shortcuts: {
btn: "shadow-md flex items-center z-10 disabled:filter-grayscale disabled:opacity-90 uppercase font-semibold rounded disabled:hover:brightness-100 hover:brightness-110 transition-all duration-75 ease-in-out",
"btn-primary-blue": "bg-#19A8F5 text-white",
"btn-primary-pink": "bg-#ef3fff text-white",
"btn-lg": "text-2xl px-8 py-2",
"btn-md": "text-lg px-6 py-1",
"btn-sm": "text-base px-4 py-1"
},
safelist: `${cols} ${rows}`.split(" "),
theme: {
colors: {
typo: {
secondary: "#C3E6FF",
tertiary: "#7183A1"
},
background: {
primary: "#151321",
secondary: "#2D2D45",
tertiary: "#373458"
}
}
}
});
// vite.config.ts
import { sentryVitePlugin } from "file:///Users/vincent/Desktop/work/consolelabs/verse-web/node_modules/@sentry/vite-plugin/dist/esm/index.mjs";
var vite_config_default = defineConfig2(({ command, mode }) => {
const env = loadEnv(mode, process.cwd(), "");
return {
build: {
sourcemap: true
},
plugins: [
react(),
unocss(config),
tsconfigPaths(),
sentryVitePlugin({
org: "consolelabs",
project: mode === "production" ? "verse-web-prod" : "verse-web-dev",
include: "./dist",
authToken: env.VITE_SENTRY_AUTH_TOKEN
})
],
server: { host: "0.0.0.0", port: 8e3 },
clearScreen: false
};
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiLCAidW5vY3NzLmNvbmZpZy50cyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiY29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2Rpcm5hbWUgPSBcIi9Vc2Vycy92aW5jZW50L0Rlc2t0b3Avd29yay9jb25zb2xlbGFicy92ZXJzZS13ZWJcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfZmlsZW5hbWUgPSBcIi9Vc2Vycy92aW5jZW50L0Rlc2t0b3Avd29yay9jb25zb2xlbGFicy92ZXJzZS13ZWIvdml0ZS5jb25maWcudHNcIjtjb25zdCBfX3ZpdGVfaW5qZWN0ZWRfb3JpZ2luYWxfaW1wb3J0X21ldGFfdXJsID0gXCJmaWxlOi8vL1VzZXJzL3ZpbmNlbnQvRGVza3RvcC93b3JrL2NvbnNvbGVsYWJzL3ZlcnNlLXdlY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