From 7ddab3b4fe93b141d77cc241bf186116889c269a Mon Sep 17 00:00:00 2001 From: Prince Muel Date: Fri, 28 Apr 2023 00:23:05 +0100 Subject: [PATCH] ci: initialize remove consoleplugin in vite config Signed-off-by: Prince Muel --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 9fe9077..2d2d886 100755 --- a/vite.config.ts +++ b/vite.config.ts @@ -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/' }], },