How to remove Console.log's from build?

How do i remove Console.log’s from my Framework7 Core build or implement a plugin for ViteJS todo that for me?
I used Framework7-cli to build my template…

Config of my template build:
App Type: Simple web app
Framework: Framework7 core
Starter template: Tabbed Views
Bundler: Vite

I’ve already tried to implement this plugin, but my built index.[hash].js was still showing Console.log’s.

With //… Just kidding

Try using condicional if or designe a store with console.log hide ON production