-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathvue.config.js
49 lines (48 loc) · 1.32 KB
/
vue.config.js
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
const { defineConfig } = require("@vue/cli-service");
const { presetAttributify, presetUno, presetIcons } = require("unocss");
module.exports = defineConfig({
transpileDependencies: true,
chainWebpack: (config) => {
config.resolve.extensions.add(".ts");
},
configureWebpack: {
resolve: {
fallback: {
http: false,
https: false,
url: false,
timers: false,
},
},
plugins: [
require("unplugin-icons/webpack")({
autoInstall: true,
}),
require("@unocss/webpack").default({
theme: {
fontFamily: {
sans: '"Inter", Inter var,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji',
},
},
presets: [
presetIcons({
extraProperties: {
display: "inline-block",
height: "1.2em",
width: "1.2em",
"vertical-align": "text-bottom",
},
}),
presetAttributify(),
presetUno(),
],
}),
],
},
lintOnSave: false,
pluginOptions: {
windicss: {
// see https://github.com/windicss/vite-plugin-windicss/blob/main/packages/plugin-utils/src/options.ts
},
},
});