测试全流程
This commit is contained in:
@@ -18,7 +18,7 @@ export default defineConfig(({ command, mode }) => {
|
||||
return {
|
||||
define: {
|
||||
// enable hydration mismatch details in production build
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: mode == 'production' ? 'false' : 'true',
|
||||
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: mode == 'prd' ? 'false' : 'true',
|
||||
},
|
||||
|
||||
plugins: [
|
||||
@@ -125,8 +125,8 @@ export default defineConfig(({ command, mode }) => {
|
||||
terserOptions: {
|
||||
compress: {
|
||||
//生产环境时移除打印日志
|
||||
// drop_console: mode == 'production' ? true : false,
|
||||
// drop_debugger: mode == 'production' ? true : false,
|
||||
// drop_console: mode == 'prd' ? true : false,
|
||||
// drop_debugger: mode == 'prd' ? true : false,
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user