diff --git a/build/plugins.ts b/build/plugins.ts index 211ca194b..c1566bea9 100644 --- a/build/plugins.ts +++ b/build/plugins.ts @@ -29,7 +29,7 @@ export function getPluginsList(command, VITE_LEGACY) { Unocss(), DefineOptions(), // 线上环境删除console - removeConsole(), + removeConsole({ external: ["src/assets/iconfont/iconfont.js"] }), viteBuildInfo(), // 自定义主题 themePreprocessorPlugin({ diff --git a/package.json b/package.json index 8a079dc1e..252b832e4 100644 --- a/package.json +++ b/package.json @@ -139,7 +139,7 @@ "unplugin-vue-define-options": "^0.6.1", "vite": "^2.9.12", "vite-plugin-mock": "^2.9.6", - "vite-plugin-remove-console": "^0.0.7", + "vite-plugin-remove-console": "^1.0.0", "vite-svg-loader": "^3.3.0", "vue-eslint-parser": "^8.2.0" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 40a4ad24b..1ec2f4419 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -99,7 +99,7 @@ specifiers: v-contextmenu: 3.0.0 vite: ^2.9.12 vite-plugin-mock: ^2.9.6 - vite-plugin-remove-console: ^0.0.7 + vite-plugin-remove-console: ^1.0.0 vite-svg-loader: ^3.3.0 vue: ^3.2.37 vue-eslint-parser: ^8.2.0 @@ -230,7 +230,7 @@ devDependencies: unplugin-vue-define-options: 0.6.1_1faebec15bfd13576036847e0ecec82b vite: 2.9.12_sass@1.51.0 vite-plugin-mock: 2.9.6_9f4d6c9d28564cba275b50667d1a1ad4 - vite-plugin-remove-console: 0.0.7 + vite-plugin-remove-console: 1.0.0 vite-svg-loader: 3.3.0 vue-eslint-parser: 8.3.0_eslint@8.15.0 @@ -8561,10 +8561,10 @@ packages: - supports-color dev: true - /vite-plugin-remove-console/0.0.7: + /vite-plugin-remove-console/1.0.0: resolution: { - integrity: sha512-aGD/EK/EeEjKaRlgwx/6bT1lSGUGR/ITUUSnwVPkRbHF0TFsoprruv1SRx7+NQTAsGazRSaFepO0znCqtiHsFw== + integrity: sha512-TdCnxBEPojMaX1I2GcEJ3bxaphHSwp8LyXq/xtZSpn2KoWAr3H4v4gFUrVZS41xZWqNqKsQUWAboAckdMdGe2w== } dev: true