import { defineConfig } from "@tarojs/cli"; export default defineConfig({ projectName: "wechat-miniapp-starter", date: "2026-05-07", designWidth: 750, deviceRatio: { 640: 2.34 / 2, 750: 1, 828: 1.81 / 2 }, sourceRoot: "src", outputRoot: "dist", plugins: [], defineConstants: {}, copy: { patterns: [], options: {} }, framework: "react", compiler: { type: "webpack5" }, cache: { enable: false }, mini: { postcss: { pxtransform: { enable: true, config: {} }, url: { enable: true, config: { limit: 1024 } }, cssModules: { enable: false, config: { namingPattern: "module", generateScopedName: "[name]__[local]___[hash:base64:5]" } } } }, h5: { publicPath: "/", staticDirectory: "static" } });