登录页面
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import type { UserConfigExport } from '@tarojs/cli';
|
||||
|
||||
/**
|
||||
* dev:weapp 下 Vite 会用 prod 模式替换 react 引用,可能导致 useState 等 hooks 失效。
|
||||
* @see https://docs.taro.zone/docs/config-detail#minidebugreact
|
||||
*/
|
||||
export default {
|
||||
mini: {
|
||||
debugReact: true,
|
||||
},
|
||||
} satisfies UserConfigExport;
|
||||
@@ -39,6 +39,8 @@ export default defineConfig(async () => ({
|
||||
enable: false,
|
||||
},
|
||||
mini: {
|
||||
/** dev:weapp 预览模式需开启,否则 React hooks 在 Vite 下会失效 */
|
||||
debugReact: process.env.NODE_ENV !== 'production',
|
||||
postcss: {
|
||||
pxtransform: { enable: true, config: {} },
|
||||
cssModules: { enable: false },
|
||||
|
||||
Reference in New Issue
Block a user