-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.ts
84 lines (72 loc) · 1.78 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
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
82
83
84
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
// https://vitejs.dev/config/
/*
export default defineConfig({
base: "/",
plugins: [vue()],
css: {
preprocessorOptions: {
scss: {
additionalData: `
// Layout
$Layout-Mobile: 375px;
$Layout-Desktop: 1440px;
// Primary
$Bright-Blue: hsl(220, 98%, 61%);
$Check-Background: linear-gradient(90deg, hsl(192, 100%, 67%) 0%, hsl(280, 87%, 65%) 100%);
// Light Theme
$Light-Gray: hsl(0, 0%, 98%);
$Lighter-Grayish-Blue: hsl(236, 33%, 92%);
$Light-Grayish-Blue: hsl(233, 11%, 84%);
$Dark-Grayish-Blue: hsl(236, 9%, 61%);
$Darker-Grayish-Blue: hsl(235, 19%, 35%);
// Dark Theme
$Darker-Blue: hsl(235, 21%, 11%);
$Darker-Desaturated-Blue: hsl(235, 24%, 19%);
$Light-Grayish-Blue: hsl(234, 39%, 85%);
$Light-Grayish-Blue-hover: hsl(236, 33%, 92%);
$Dark-Grayish-Blue: hsl(234, 11%, 52%);
$Darker-Grayish-Blue: hsl(233, 14%, 35%);
$Darker-Grayish-Blue-hover: hsl(237, 14%, 26%);
// Typography
// Body Copy
$Font-Size: 18px;
// Font
$Font-Family: 'Josefin Sans', sans-serif;
$Regular-Weight: 400;
$Bold-Weight: 700;
`,
},
},
},
});
*/
export default defineConfig(({ command, mode }) => {
if (command === "serve") {
console.info("COMMAND SERVE >> ::", command);
return {
// dev specific config
base: "/",
plugins: [vue()],
css: {
preprocessorOptions: {
scss: {
additionalData: `
@use "/src/scss/01_settings/" as settings;
@use "/src/scss/02_tools/" as tools;
`,
},
},
},
};
} else {
// command === 'build'
console.info("COMMAND BUILD >> ::", command);
return {
// build specific config
base: "/todo-app-main/",
plugins: [vue()],
};
}
});