jonkemp / jonkemp/inline-css

expected

Open
#124 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
438
Forks
77
PR merge metrics
No merged PRs in 30d

Description

Hi there! How you doing? Hope you are fine!

I tried making a simple app like this

```
var extractCss = require('extract-css');
var options = {
url: './',
applyStyleTags: true,
removeStyleTags: true,
applyLinkTags: true,
removeLinkTags: true,
preserveMediaQueries: false
};

var document = `



`
extractCss(document, options, function (err, html, css) {
//console.log(html);
console.log(css);
});
```

And there is no output..

![image](https://github.com/jonkemp/inline-css/assets/1927644/0fdc3dca-71dc-44a4-a087-c402ea3bb5e6)

I read the [README.md](https://github.com/jonkemp/inline-css/blob/b7a249cf1482908de947738673c0997151f3b090/README.md) and see some HTML in the [expected folder](https://github.com/jonkemp/inline-css/blob/master/test/expected/)... but got no more clues about how to make this work,.

Would you be so kind of providing some working examples?

Greetings

Thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.