mirror of
https://github.com/mue/mue.git
synced 2026-07-18 14:34:12 +02:00
chore: add vite inspector
This commit is contained in:
@@ -36,7 +36,8 @@
|
|||||||
"react-icons": "^5.2.1",
|
"react-icons": "^5.2.1",
|
||||||
"react-modal": "3.16.1",
|
"react-modal": "3.16.1",
|
||||||
"react-toastify": "10.0.5",
|
"react-toastify": "10.0.5",
|
||||||
"use-debounce": "^10.0.1"
|
"use-debounce": "^10.0.1",
|
||||||
|
"vite-plugin-inspect": "^0.8.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^19.3.0",
|
"@commitlint/cli": "^19.3.0",
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { defineConfig, loadEnv } from 'vite';
|
import { defineConfig, loadEnv } from 'vite';
|
||||||
|
import inspect from 'vite-plugin-inspect';
|
||||||
import react from '@vitejs/plugin-react-swc';
|
import react from '@vitejs/plugin-react-swc';
|
||||||
import path from 'path';
|
import path from 'path';
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
@@ -101,6 +102,7 @@ export default defineConfig(({ command, mode }) => {
|
|||||||
__APP_ENV__: JSON.stringify(env.APP_ENV),
|
__APP_ENV__: JSON.stringify(env.APP_ENV),
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
inspect(),
|
||||||
react(),
|
react(),
|
||||||
I18nPlugin({
|
I18nPlugin({
|
||||||
include: './src/i18n/**/*.yml',
|
include: './src/i18n/**/*.yml',
|
||||||
|
|||||||
Reference in New Issue
Block a user