vite.config.ts.timestamp-1719915060984-6fabe9de1b68c.mjs 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // vite.config.ts
  2. import { fileURLToPath, URL } from "node:url";
  3. import { defineConfig } from "file:///D:/1%20-%20sunxiao/project/slibra-module-web/node_modules/vite/dist/node/index.js";
  4. import { createSvgIconsPlugin } from "file:///D:/1%20-%20sunxiao/project/slibra-module-web/node_modules/@digitalacorn/vite-plugin-svg-icons/dist/index.mjs";
  5. import vue from "file:///D:/1%20-%20sunxiao/project/slibra-module-web/node_modules/@vitejs/plugin-vue/dist/index.mjs";
  6. import vueJsx from "file:///D:/1%20-%20sunxiao/project/slibra-module-web/node_modules/@vitejs/plugin-vue-jsx/dist/index.mjs";
  7. import VueDevTools from "file:///D:/1%20-%20sunxiao/project/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:///D:/1%20-%20sunxiao/project/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,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6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