forked from mystiq/hydrogen-web
Modify comment
This commit is contained in:
parent
8ad0b8a726
commit
46d2792dac
1 changed files with 3 additions and 1 deletions
|
@ -34,6 +34,7 @@ type DefaultVariant = {
|
||||||
variantName: string;
|
variantName: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
type ThemeInformation = NormalVariant | DefaultVariant;
|
type ThemeInformation = NormalVariant | DefaultVariant;
|
||||||
|
|
||||||
export class ThemeLoader {
|
export class ThemeLoader {
|
||||||
|
@ -57,7 +58,8 @@ export class ThemeLoader {
|
||||||
/*
|
/*
|
||||||
After build has finished, the source section of each theme manifest
|
After build has finished, the source section of each theme manifest
|
||||||
contains `built-assets` which is a mapping from the theme-name to theme
|
contains `built-assets` which is a mapping from the theme-name to theme
|
||||||
details which includes the location of the CSS file.
|
information which includes the location of the CSS file.
|
||||||
|
(see type ThemeInformation above)
|
||||||
*/
|
*/
|
||||||
Object.assign(this._themeMapping, body["source"]["built-assets"]);
|
Object.assign(this._themeMapping, body["source"]["built-assets"]);
|
||||||
//Add the default-theme as an additional option to the mapping
|
//Add the default-theme as an additional option to the mapping
|
||||||
|
|
Loading…
Reference in a new issue