We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
See notes:
https://github.com/gajus/usus/blob/3edef93496971e329024aa1856babcd4cc15f453/src/usus.js#L27-L40
The text was updated successfully, but these errors were encountered:
Related: c1d4f39
Sorry, something went wrong.
Nice tool your created. I would advise to do the inlining in the end in node with cheerio, which you already depend on..
const rootOuterHTML = (await DOM.getOuterHTML({ nodeId: rootDocument.root.nodeId })).outerHTML; await end(); $ = cheerio.load(rootOuterHTML) $("head").append("<style>....") return $.html()
you will have the cost of one additional html parsing, but the code will be much cleaner..
or even easier a quick and dirty string replace..
return rootOuterHTML.replace("</head>","<style>...</head>")
No branches or pull requests
See notes:
https://github.com/gajus/usus/blob/3edef93496971e329024aa1856babcd4cc15f453/src/usus.js#L27-L40
The text was updated successfully, but these errors were encountered: