Skip to content

Commit

Permalink
feat: a 'console.log()' remover is being tested in production
Browse files Browse the repository at this point in the history
  • Loading branch information
Franqsanz committed Jun 25, 2024
1 parent 8df892f commit 37ee1be
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
14 changes: 14 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"vite-plugin-html": "3.2.2",
"vite-plugin-image-optimizer": "1.1.7",
"vite-plugin-minify": "1.5.2",
"vite-plugin-remove-console": "2.2.0",
"vite-plugin-webfont-dl": "3.9.4",
"vitest": "1.5.2"
}
Expand Down
5 changes: 3 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/// <reference types="vite/client" />

import { defineConfig, splitVendorChunkPlugin } from 'vite';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import million from 'million/compiler';
import compression from 'vite-plugin-compression';
import webfontDownload from 'vite-plugin-webfont-dl';
import { ViteImageOptimizer } from 'vite-plugin-image-optimizer';
import { createHtmlPlugin } from 'vite-plugin-html';
import removeConsole from 'vite-plugin-remove-console';
import path from 'path';

export default defineConfig({
plugins: [
million.vite({ auto: true }),
splitVendorChunkPlugin(),
react(),
webfontDownload(
[
Expand All @@ -26,6 +26,7 @@ export default defineConfig({
proxy: false,
},
),
removeConsole(),
createHtmlPlugin({ minify: true }),
compression({
algorithm: 'brotliCompress',
Expand Down

0 comments on commit 37ee1be

Please sign in to comment.