import { defineConfig } from '@tarojs/cli' export default defineConfig<'webpack5'>({ projectName: 'ballet-island', designWidth: 375, deviceRatio: { 375: 2, 640: 1.17, 750: 1, 828: 0.905, }, sourceRoot: 'src', outputRoot: 'dist', framework: 'react', compiler: { type: 'webpack5', prebundle: { enable: false }, }, cache: { enable: true }, defineConstants: { __API_BASE_URL__: JSON.stringify( (process.env.TARO_APP_API_BASE_URL || 'http://127.0.0.1:8080').replace(/\/$/, ''), ), }, mini: { postcss: { pxtransform: { enable: true }, cssModules: { enable: false }, }, }, })