-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
53 lines (38 loc) · 1.51 KB
/
astro.config.ts
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
import { defineConfig } from "astro/config";
//import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import viteSvgr from "vite-plugin-svgr";
// https://astro.build/config
export default defineConfig({
// Information \\
site: "https://thenormandyproject.github.io",
// Output \\
output: "static",
// Server \\
server: { port: 3000, host: true },
// Plugins \\
vite : {
plugins : [
viteSvgr({
// Set it to `true` to export React component as default.
// Notice that it will overrides the default behavior of Vite.
exportAsDefault: false,
// svgr options: https://react-svgr.com/docs/options/
svgrOptions: {
typescript: false
},
// esbuild options, to transform jsx to js
esbuildOptions: {
// ...
},
// A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should include. By default all svg files will be included.
include: "**/*.svg",
// A minimatch pattern, or array of patterns, which specifies the files in the build the plugin should ignore. By default no files are ignored.
exclude: "",
})
]
},
integrations: [/*tailwind({
config : { path : "./tailwind.config.cjs", applyBaseStyles : false }
}),*/ react()]
});