Skip to content

Commit

Permalink
fix: Only import the needed parts of lumo-styles (#13320)
Browse files Browse the repository at this point in the history
Fixes #13319
  • Loading branch information
Artur- committed Mar 21, 2022
1 parent 9cc29fc commit ab57d0b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function generateThemeFile(themeFolder, themeName, themeProperties, productionMo
const lumoImports = themeProperties.lumoImports || ['color', 'typography'];
if (lumoImports && lumoImports.length > 0) {
lumoImports.forEach((lumoImport) => {
imports.push(`import { ${lumoImport} } from '@vaadin/vaadin-lumo-styles';\n`);
imports.push(`import { ${lumoImport} } from '@vaadin/vaadin-lumo-styles/${lumoImport}.js';\n`);
});

lumoImports.forEach((lumoImport) => {
Expand Down

0 comments on commit ab57d0b

Please sign in to comment.