初始化工程
This commit is contained in:
23
config/dev.ts
Normal file
23
config/dev.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import type { UserConfigExport } from "@tarojs/cli";
|
||||
export default {
|
||||
logger: {
|
||||
quiet: false,
|
||||
stats: true
|
||||
},
|
||||
mini: {},
|
||||
h5: {},
|
||||
// 添加这个配置来显示完整错误信息
|
||||
compiler: {
|
||||
type: 'webpack5',
|
||||
prebundle: {
|
||||
enable: false
|
||||
}
|
||||
},
|
||||
cache: {
|
||||
enable: false // 禁用缓存确保重新编译
|
||||
},
|
||||
// 开发环境不压缩代码
|
||||
terser: {
|
||||
enable: false
|
||||
}
|
||||
} satisfies UserConfigExport<'webpack5'>
|
||||
Reference in New Issue
Block a user