vite.config.ts.timestamp-1720486813773-2c95633e7e6a2.mjs 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // vite.config.ts
  2. import { fileURLToPath, URL } from "node:url";
  3. import { defineConfig } from "file:///Users/sunxiao/Desktop/project/slibra/slibra-module-web/node_modules/vite/dist/node/index.js";
  4. import { createSvgIconsPlugin } from "file:///Users/sunxiao/Desktop/project/slibra/slibra-module-web/node_modules/@digitalacorn/vite-plugin-svg-icons/dist/index.mjs";
  5. import vue from "file:///Users/sunxiao/Desktop/project/slibra/slibra-module-web/node_modules/@vitejs/plugin-vue/dist/index.mjs";
  6. import vueJsx from "file:///Users/sunxiao/Desktop/project/slibra/slibra-module-web/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
  7. import VueDevTools from "file:///Users/sunxiao/Desktop/project/slibra/slibra-module-web/node_modules/vite-plugin-vue-devtools/dist/vite.mjs";
  8. import path from "path";
  9. var __vite_injected_original_import_meta_url = "file:///Users/sunxiao/Desktop/project/slibra/slibra-module-web/vite.config.ts";
  10. var vite_config_default = defineConfig({
  11. base: "./",
  12. plugins: [
  13. vue(),
  14. vueJsx(),
  15. VueDevTools(),
  16. createSvgIconsPlugin({
  17. iconDirs: [path.resolve(process.cwd(), "src/assets/svgs")],
  18. symbolId: "icon-[dir]-[name]",
  19. svgoOptions: true,
  20. replaceStrokeWithCurrentColor: false
  21. })
  22. ],
  23. resolve: {
  24. alias: {
  25. "@": fileURLToPath(new URL("./src", __vite_injected_original_import_meta_url))
  26. },
  27. extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
  28. },
  29. css: {
  30. preprocessorOptions: {
  31. scss: {
  32. additionalData: `
  33. @import "@/assets/styles/mixins.scss";
  34. @import "@/assets/styles/variables.scss";`
  35. }
  36. }
  37. },
  38. server: {
  39. host: "0.0.0.0"
  40. }
  41. });
  42. export {
  43. vite_config_default as default
  44. };
  45. //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9u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