Files
silk/miniapp/config/dev.ts
T

23 lines
461 B
TypeScript

import type { UserConfigExport } from '@tarojs/cli';
export default {
logger: {
quiet: false,
stats: true,
},
mini: {},
h5: {
devServer: {
open: false, //禁止自动打开浏览器
proxy: [
{
context: ['/api', '/ws'],
target: 'http://localhost:3000',
changeOrigin: true,
secure: false,
ws: true,
},
],
},
},
} satisfies UserConfigExport<'webpack5'>;