Use new theme config

This commit is contained in:
RMidhunSuresh 2022-04-13 14:24:50 +05:30
parent 23aac5cb45
commit 83dffef47d

View file

@ -16,7 +16,13 @@ export default defineConfig(({mode}) => {
sourcemap: true, sourcemap: true,
}, },
plugins: [ plugins: [
themeBuilder({manifestLocations: ["./src/platform/web/ui/css/themes/element"], compiledVariables}), themeBuilder({
themeConfig: {
themes: {"element": "./src/platform/web/ui/css/themes/element"},
default: "element",
},
compiledVariables
}),
// important this comes before service worker // important this comes before service worker
// otherwise the manifest and the icons it refers to won't be cached // otherwise the manifest and the icons it refers to won't be cached
injectWebManifest("assets/manifest.json"), injectWebManifest("assets/manifest.json"),