获得徽章 0
- idea对Android项目的支持度太差了, 及时是 Ultimate版本, 主要体现在新项目没有 local.properties的话无法正确加载, 相反如果是新项目, Android Studio则会发现SDK位置并更新 local.properties2433
- vuecli生成的项目 uniapp+vue3+vite模式下 打包生成h5时,大佬们有遇到过配置编译去除注释,没被注释的情况吗,大佬们有什么解决方案
build: {
//打包环境移除console.log,debugger
minify: 'terser',
terserOptions: {
format: {
// 去除注释
comments: false,
},
compress: {
warnings: false,
drop_console: true, // console
drop_debugger: true,
// directives: true,
// dead_code: true,
pure_funcs: ['console.log'], // 移除console
},
},
//打包文件按照类型分文件夹显示
rollupOptions: {
input: {
main: path.resolve(__dirname, 'index.html'),
},
output: {
chunkFileNames: 'js/[name]-[hash].js',
entryFileNames: 'js/[name]-[hash].js',
assetFileNames: '[ext]/[name]-[hash].[ext]',
},
},
},展开1730
![[泪奔]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_85.43ad2fc.png)
![[送心]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_56.5777828.png)
![[流泪]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_6.dde0d83.png)
![[尴尬]](http://lf-web-assets.juejin.cn/obj/juejin-web/xitu_juejin_web/img/jj_emoji_11.8824107.png)