criticalCSS icon indicating copy to clipboard operation
criticalCSS copied to clipboard

How to use CLI

Open symbios-zi opened this issue 7 years ago • 0 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?

symbios-zi avatar Nov 30 '18 09:11 symbios-zi