You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -53,6 +53,11 @@ function pluginReplaceConstantsEnvVars(): Plugin[] {
53
53
return[
54
54
{
55
55
name: 'vike:pluginReplaceConstantsEnvVars',
56
+
// Correct oder:
57
+
// 1. @vitejs/plugin-vue
58
+
// 2. vike:pluginExtractAssets and vike:pluginExtractExportNames [needs to be applied after @vitejs/plugin-vue]
59
+
// 3. vike:pluginReplaceConstantsEnvVars [needs to be applied after vike:pluginExtractAssets and vike:pluginExtractExportNames]
60
+
// 4. vite:define (Vite built-in plugin) [needs to be applied after vike:pluginReplaceConstantsEnvVars]
56
61
enforce: 'post',
57
62
configResolved: {
58
63
handler(config_){
@@ -64,9 +69,8 @@ function pluginReplaceConstantsEnvVars(): Plugin[] {
64
69
65
70
envPrefix=getEnvPrefix(config)
66
71
67
-
// Vite's built-in plugin vite:define needs to apply after this plugin.
68
-
// - This plugin vike:pluginReplaceConstantsEnvVars needs to apply after vike:pluginExtractAssets and vike:pluginExtractExportNames which need to apply after @vitejs/plugin-vue
0 commit comments