Skip to content

Commit

Permalink
Remove 'variables' from cssbuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
ascholerChemeketa committed Nov 23, 2024
1 parent a198c65 commit c99c6bc
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions script/cssbuilder/cssbuilder.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,8 @@ async function getESBuildConfig(options) {
// Tack on any config variables to the top of the file
let prefix = '';
if (options['selected-target'] && options['config-options']) {
if (options['config-options']['variables']) {
for (const [key, value] of Object.entries(options['config-options']['variables'])) {
prefix += `$${key}: ${value};\n`;
}
}
if (options['config-options']['options']) {
for (const [key, value] of Object.entries(options['config-options']['options'])) {
prefix += `$${key}: ${value};\n`;
}
for (const [key, value] of Object.entries(options['config-options']['options'])) {
prefix += `$${key}: ${value};\n`;
}
}
return isRoot ? prefix + source : source;
Expand Down

0 comments on commit c99c6bc

Please sign in to comment.