mirror of
https://github.com/apache/skywalking-booster-ui.git
synced 2025-10-14 11:21:29 +00:00
feat(style): add scss variables (#291)
This commit is contained in:
@@ -27,6 +27,7 @@ import path from "path";
|
||||
import { createSvgIconsPlugin } from "vite-plugin-svg-icons";
|
||||
|
||||
const OUTPUT_DIR = "dist";
|
||||
const pathSrc = path.resolve(__dirname, "./src");
|
||||
// https://vitejs.dev/config/
|
||||
export default ({ mode }: ConfigEnv): UserConfig => {
|
||||
const { VITE_SW_PROXY_TARGET } = loadEnv(mode, process.cwd());
|
||||
@@ -54,11 +55,19 @@ export default ({ mode }: ConfigEnv): UserConfig => {
|
||||
resolve: {
|
||||
extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"],
|
||||
alias: {
|
||||
"@": path.resolve(__dirname, "./src"),
|
||||
"@": pathSrc,
|
||||
"vue-i18n": "vue-i18n/dist/vue-i18n.cjs.js",
|
||||
},
|
||||
preserveSymlinks: true,
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
//define global scss variable
|
||||
scss: {
|
||||
additionalData: `@import "@/styles/light.scss";`,
|
||||
},
|
||||
},
|
||||
},
|
||||
server: {
|
||||
host: true,
|
||||
port: 3000,
|
||||
|
Reference in New Issue
Block a user