hadars 0.1.15 → 0.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +1 -1
- package/package.json +1 -1
- package/src/build.ts +1 -1
package/dist/cli.js
CHANGED
|
@@ -805,7 +805,7 @@ async function processHtmlTemplate(templatePath) {
|
|
|
805
805
|
let processedHtml = html;
|
|
806
806
|
for (const { full, attrs, css } of matches) {
|
|
807
807
|
try {
|
|
808
|
-
const result = await postcss(plugins).process(css, { from:
|
|
808
|
+
const result = await postcss(plugins).process(css, { from: templatePath });
|
|
809
809
|
processedHtml = processedHtml.replace(full, `<style${attrs}>${result.css}</style>`);
|
|
810
810
|
} catch (err) {
|
|
811
811
|
console.warn("[hadars] PostCSS error processing <style> block in HTML template:", err);
|
package/package.json
CHANGED
package/src/build.ts
CHANGED
|
@@ -49,7 +49,7 @@ async function processHtmlTemplate(templatePath: string): Promise<string> {
|
|
|
49
49
|
let processedHtml = html;
|
|
50
50
|
for (const { full, attrs, css } of matches) {
|
|
51
51
|
try {
|
|
52
|
-
const result = await postcss(plugins).process(css, { from:
|
|
52
|
+
const result = await postcss(plugins).process(css, { from: templatePath });
|
|
53
53
|
processedHtml = processedHtml.replace(full, `<style${attrs}>${result.css}</style>`);
|
|
54
54
|
} catch (err) {
|
|
55
55
|
console.warn('[hadars] PostCSS error processing <style> block in HTML template:', err);
|