optimization: {
minimizer: [
new TerserJSPlugin({
terserOptions: {
format: {
comments: /(\s*#if)|(\s*#end)/i,
},
},
}),
],
},
// #ifdef H5
// #endif
原文:https://www.cnblogs.com/ajanuw/p/14124302.html