Plugins: Pass build mode to frontend (#114092)
* pass build mode to frontend * set buildMode build time using shared plugin webpack conf
This commit is contained in:
@@ -339,6 +339,7 @@ type AppDTO struct {
|
||||
Dependencies Dependencies `json:"dependencies"`
|
||||
ModuleHash string `json:"moduleHash,omitempty"`
|
||||
Translations map[string]string `json:"translations,omitempty"`
|
||||
BuildMode string `json:"buildMode,omitempty"`
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
@@ -133,6 +133,9 @@ type JSONData struct {
|
||||
|
||||
// List of languages supported by the plugin
|
||||
Languages []string `json:"languages,omitempty"`
|
||||
|
||||
// Build mode of the plugin (set automatically at build time)
|
||||
BuildMode string `json:"buildMode,omitempty"`
|
||||
}
|
||||
|
||||
func ReadPluginJSON(reader io.Reader) (JSONData, error) {
|
||||
|
||||
Reference in New Issue
Block a user