import { defineConfig } from "vite";
import uni from "@dcloudio/vite-plugin-uni";

export default defineConfig({
  plugins: [uni()],
  css: {
    preprocessorOptions: {
      scss: {
        // 取消sass废弃API的报警
        silenceDeprecations: ["legacy-js-api", "color-functions", "import"],
      },
    },
  },
  server: {
    port: 5100,
    fs: {
      allow: [".."],
    },
  },
  build: {
    rollupOptions: {
      external: ['@dcloud/uni-app']
    },
  }
});
