feat(route): add hideChildrenInMenu option close #346

This commit is contained in:
Vben
2021-03-18 21:13:15 +08:00
parent f55ad2f90a
commit b67cf22dfc
11 changed files with 43 additions and 70 deletions

View File

@@ -18,7 +18,7 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
// The boolean type read by loadEnv is a string. This function can be converted to boolean type
const viteEnv = wrapperEnv(env);
const { VITE_PORT, VITE_PUBLIC_PATH, VITE_PROXY, VITE_DROP_CONSOLE, VITE_LEGACY } = viteEnv;
const { VITE_PORT, VITE_PUBLIC_PATH, VITE_PROXY, VITE_DROP_CONSOLE } = viteEnv;
const isBuild = command === 'build';
@@ -45,7 +45,6 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
build: {
// minify: 'esbuild',
outDir: OUTPUT_DIR,
polyfillDynamicImport: VITE_LEGACY,
terserOptions: {
compress: {
keep_infinity: true,