feat: 迁移aigc 的到养马岛

This commit is contained in:
zoujing committed 2026-09-22 14:36:51 +08:00
1 parent 340ecc9165
commit f19f748b05
103 files changed
+10475 -2150

No files matched your search

+14 -1
View File
@@ -2,6 +2,8 @@ import { defineConfig } from "vite";
import path from "path";
import uni from "@dcloudio/vite-plugin-uni";
import md5 from "md5-hash";
import tailwindcss from "@tailwindcss/postcss";
import { UnifiedViteWeappTailwindcssPlugin } from "weapp-tailwindcss/vite";
// https://vitejs.dev/config/
export default defineConfig({
@@ -11,6 +13,9 @@ export default defineConfig({
},
},
css: {
postcss: {
plugins: [tailwindcss()],
},
preprocessorOptions: {
scss: {
api: "modern-compiler",
@@ -18,7 +23,15 @@ export default defineConfig({
},
},
},
plugins: [uni()],
plugins: [
uni(),
UnifiedViteWeappTailwindcssPlugin({
rem2rpx: true,
cssEntries: [path.resolve(__dirname, "./src/app.css")],
cssPreflight: false,
disabled: process.env.UNI_PLATFORM === "h5" || process.env.UNI_PLATFORM?.startsWith("app"),
}),
],
build: {
commonjsOptions: {
transformMixedEsModules: true,