chore: code cleanup
Co-authored-by: Sagar Vora <sagar@resilient.tech>
This commit is contained in:
parent
61642b0b61
commit
bfbdaa4f4d
1 changed files with 2 additions and 2 deletions
|
|
@ -20,8 +20,8 @@ module.exports = {
|
|||
return f.path.endsWith(".css") && f.path.includes(`/${name}.bundle.`);
|
||||
});
|
||||
|
||||
let css_data = JSON.stringify(result.outputFiles[index].text).slice(1, -1);
|
||||
let modified = `frappe.dom.set_style("${css_data}");\n` + out.text;
|
||||
let css_data = JSON.stringify(result.outputFiles[index].text);
|
||||
let modified = `frappe.dom.set_style(${css_data});\n${out.text}`;
|
||||
out.contents = Buffer.from(modified);
|
||||
|
||||
result.outputFiles.splice(index, 1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue