-
Notifications
You must be signed in to change notification settings - Fork 94
/
vite.config.ts
37 lines (36 loc) · 1.04 KB
/
vite.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
import { resolve } from 'path'
import { defineConfig } from 'vite'
import RubyPlugin from 'vite-plugin-ruby'
import WindiCSS from 'vite-plugin-windicss'
export default defineConfig({
plugins: [
RubyPlugin(),
WindiCSS({
root: __dirname,
configFiles: [resolve(__dirname, 'windi.config.ts')],
scan: {
dirs: [
'app/_layouts', 'app/_includes', 'app/_posts', 'app/_assets', 'app/community', 'app/cookie-policy',
'app/docs', 'app/enterprise', 'app/install', 'app/policies', 'app/privacy', 'app/resources',
'app/servicemeshcon', 'terms', 'app/use-cases'
],
},
}),
],
css: {
devSourcemap: true,
preprocessorOptions: {
scss: {
api: 'modern',
additionalData: [
'@import',
"'@/styles/custom/config/variables',",
"'@/styles/vuepress-core/config',",
"'@/styles/custom/config/fonts',",
"'@/styles/custom/config/mixins',",
"'@/styles/custom/base/forms';",
].join(' ')
},
},
},
})