js webpack打包时保留指定注释
optimization: {
minimizer: [
new TerserJSPlugin({
terserOptions: {
format: {
comments: /(\s*#if)|(\s*#end)/i,
},
},
}),
],
},
// #ifdef H5
// #endif