2015-11-02 15:51:06 +00:00
|
|
|
import inlineCss = require('inline-css');
|
|
|
|
|
|
|
|
|
|
var str: string;
|
|
|
|
|
var bool: boolean;
|
|
|
|
|
|
2020-04-13 23:49:28 +00:00
|
|
|
var options: inlineCss.Options;
|
2015-11-02 15:51:06 +00:00
|
|
|
|
|
|
|
|
str = options.url;
|
|
|
|
|
str = options.extraCss;
|
|
|
|
|
|
|
|
|
|
bool = options.applyStyleTags;
|
|
|
|
|
bool = options.applyLinkTags;
|
|
|
|
|
bool = options.removeStyleTags;
|
|
|
|
|
bool = options.removeLinkTags;
|
|
|
|
|
bool = options.preserveMediaQueries;
|
|
|
|
|
bool = options.applyWidthAttributes;
|
|
|
|
|
bool = options.applyTableAttributes;
|
2020-04-13 23:49:28 +00:00
|
|
|
bool = options.removeHtmlSelectors;
|
2015-11-02 15:51:06 +00:00
|
|
|
|
|
|
|
|
options = {
|
2020-04-13 23:49:28 +00:00
|
|
|
url: str,
|
|
|
|
|
extraCss: str,
|
|
|
|
|
applyStyleTags: bool,
|
|
|
|
|
applyLinkTags: bool,
|
|
|
|
|
removeStyleTags: bool,
|
|
|
|
|
removeLinkTags: bool,
|
|
|
|
|
preserveMediaQueries: bool,
|
|
|
|
|
applyWidthAttributes: bool,
|
|
|
|
|
applyTableAttributes: bool,
|
|
|
|
|
removeHtmlSelectors: bool,
|
2015-11-02 15:51:06 +00:00
|
|
|
};
|
|
|
|
|
|
2020-04-13 23:49:28 +00:00
|
|
|
inlineCss(str, options).then((value: string) => {});
|