Skip to content

Commit

Permalink
Merge pull request #35 from pavelhoral/fix-less
Browse files Browse the repository at this point in the history
Fix LESS build command
  • Loading branch information
pavelhoral authored Feb 20, 2024
2 parents a529dcb + 593dbdd commit 96740e5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/base/src/assets/css/common/helpers.less
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ For font awesome
height: @diameter;
border-radius: 50%;
line-height: @diameter;
font-size: @diameter/2;
font-size: (@diameter/2);
display: table;
text-align: center;
overflow: hidden;
Expand Down
4 changes: 3 additions & 1 deletion packages/build/src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ export function useLessStyles(resources, options = {}) {
for (const [source, target] of Object.entries(resources)) {
// Build using Less
const rendered = await less.render(await readFile(source, "utf-8"), {
paths: options.base || "dist"
filename: source,
paths: options.base || "dist",
rewriteUrls: "local"
});
// Process using PostCSS (we want to drop Less in the future)
const processed = await postcss([ minify() ]).process(rendered.css, {
Expand Down

0 comments on commit 96740e5

Please sign in to comment.