Skip to content

Commit

Permalink
ci: initialize remove consoleplugin in vite config
Browse files Browse the repository at this point in the history
Signed-off-by: Prince Muel <[email protected]>
  • Loading branch information
princemuel committed Apr 27, 2023
1 parent 7c76fea commit 7ddab3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import react from '@vitejs/plugin-react-swc';
import { defineConfig } from 'vite';
import removeConsole from 'vite-plugin-remove-console';
import svgr from 'vite-plugin-svgr';

// https://vitejs.dev/config/
/** @type {import('vite').UserConfig} */
export default defineConfig({
plugins: [react(), svgr()],
plugins: [react(), svgr(), removeConsole()],
resolve: {
alias: [{ find: '@src', replacement: '/src/' }],
},
Expand Down

0 comments on commit 7ddab3b

Please sign in to comment.