filamentgroup / criticalCSS

Finds the Above the Fold CSS for your page, and outputs it into a file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use CLI

symbios-zi opened this issue · comments

Hello. I have installed this package using npm. Trying to run this script in console. I have added to package.json this:

...
  "scripts": {
    "criticalcss" : "criticalcss --url=https://my-site.com --file=critical.css"
  }
...

and got an error
Error: PHANTOM ERROR: Error: The filename you have given is not found at this url.
TRACE:
-> phantomjs://code/rules.js: 53

How can I fix it?