Skip to content

Commit

Permalink
removeConsole
Browse files Browse the repository at this point in the history
  • Loading branch information
Win102021DMMRWQ\Administrator committed Aug 25, 2023
1 parent 506e334 commit dfc78ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"@vitejs/plugin-react": "^4.0.1",
"env-cmd": "^10.1.0",
"rollup-plugin-visualizer": "^5.9.2",
"vite": "^4.3.9"
"vite": "^4.3.9",
"vite-plugin-remove-console": "^2.1.1"
}
}
3 changes: 2 additions & 1 deletion packages/editor/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ import { defineConfig, loadEnv } from 'vite'
import react from '@vitejs/plugin-react'
// import { visualizer } from "rollup-plugin-visualizer"
import path from 'path';
import removeConsole from "vite-plugin-remove-console";

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => {
const { VITE_HOST } = loadEnv(mode, process.cwd());
return {
plugins: [react(), /* visualizer({ open: true }) */ ],
plugins: [react(), removeConsole(), /* visualizer({ open: true }) */ ],
resolve: {
alias: {
'@': path.resolve('./src') // @替代src
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit dfc78ad

Please sign in to comment.