今天在新项目中看到,在打包html文件里的 值,如果是true就会转义成!0 数字 8000转成8e3,使用的webpack5,这里不知道是通过哪个配置来设置的.......
转义前
jmfe.profilerInit({
flag: 298,
autoReport: true,
autoAddStaticReport: true,
autoAddApiReport: true,
autoAddImageReport: true,
performanceReportTime: 8000,
profilingRate: 1,
})
转义后
jmfe.profilerInit({
flag: 298,
autoReport: !0,
autoAddStaticReport: !0,
autoAddApiReport: !0,
autoAddImageReport: !0,
performanceReportTime: 8e3,
profilingRate: 1,
})
查了资料也没有关于这里的解释呢?大家来讨论下~~