Skip to content
New issue

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

expected #124

Open
vituchon opened this issue Jul 16, 2023 · 1 comment
Open

expected #124

vituchon opened this issue Jul 16, 2023 · 1 comment

Comments

@vituchon
Copy link

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 = `<div style="height: 100%;">
  <span style="height: 100%;"> </span>
</div>`
extractCss(document, options, function (err, html, css) {
    //console.log(html);
    console.log(css);
});	

And there is no output..

image

I read the README.md and see some HTML in the expected folder... but got no more clues about how to make this work,.

Would you be so kind of providing some working examples?

Greetings

Thanks.

@jonkemp
Copy link
Owner

jonkemp commented Jul 17, 2023

You probably need to specify the file. It may not know which file to look for with just the forward slash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants