inline-scripts icon indicating copy to clipboard operation
inline-scripts copied to clipboard

Add optional string input to api's

Open jaymarnz opened this issue 3 years ago • 0 comments

This adds an optional string input to each of the APIs so they can be chained without having to create temp files:

inlineScriptTags('./index.html') .then (htmlString => inlineStylesheets({ htmlPath: './index.html', htmlString })) .then (htmlString => inlineImages({ htmlPath: './index.html', htmlString })) .then (htmlString => fs.writeFileSync('./dist/index.html', htmlString));

jaymarnz avatar Dec 30 '22 13:12 jaymarnz