Skip to content

Commit

Permalink
Revert "chore: update unplugin-config (#3116)" (#3117)
Browse files Browse the repository at this point in the history
This reverts commit f8698c4.
  • Loading branch information
wangjue666 authored Oct 10, 2023
1 parent f8698c4 commit f0550f2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 159 deletions.
2 changes: 1 addition & 1 deletion internal/vite-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"rollup-plugin-visualizer": "^5.9.2",
"sass": "^1.63.6",
"unocss": "^0.53.4",
"unplugin-config": "^0.1.2",
"unplugin-config": "^0.0.13",
"vite-plugin-compression": "^0.5.1",
"vite-plugin-dts": "^3.1.0",
"vite-plugin-html": "^3.2.0",
Expand Down
12 changes: 4 additions & 8 deletions internal/vite-config/src/plugins/appConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,10 @@ export async function createConfigPluginConfig(
const APP_NAME = strToHex(config?.VITE_GLOB_APP_TITLE ?? '__APP');
// https://github.com/kirklin/unplugin-config
return GenerateConfig({
disabledConfig: !shouldGenerateConfig,
globConfigFileName: GLOBAL_CONFIG_FILE_NAME,
outputDir: OUTPUT_DIR,
appName: APP_NAME,
envVariables: {
prefix: 'VITE_GLOB_',
},
configFile: {
generate: shouldGenerateConfig,
fileName: GLOBAL_CONFIG_FILE_NAME,
outputDir: OUTPUT_DIR,
},
envConfigPrefix: 'VITE_GLOB_',
});
}
Loading

0 comments on commit f0550f2

Please sign in to comment.