123456789101112131415161718192021222324252627282930 |
- import { defineConfig } from "vite";
- import uni from "@dcloudio/vite-plugin-uni";
- import path from 'path'
- // https://vitejs.dev/config/
- export default defineConfig({
- plugins: [
- uni(),
- ],
- resolve: {
- alias: {
- 'uview-plus': path.resolve(__dirname, './uni_modules/uview-plus')
- }
- },
- css: {
- preprocessorOptions: {
- scss: {
- // 取消sass废弃API的报警
- silenceDeprecations: ['legacy-js-api', 'color-functions', 'import'],
- },
- },
- },
- server: {
- port: 5100,
- fs: {
- // Allow serving files from one level up to the project root
- allow: ['..']
- }
- },
- });
|