Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 845 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 845 Bytes

remote-critical-css

Generate a critical-css file by from a website by providing a URL using puppeteer, critical, & cssnano

Usage

  1. $ git clone https://github.com/steveosoule/remote-critical-css.git
  2. $ cd remote-critical-css
  3. $ npm install
  4. Download the css files that are used on the site and place them in a mirrored path in the src file. For example, if your css is located at https://example.com/css/main.css, download that file to: src/css/main.css and repeat that for each css file that is used on your site. (Note: looking to automate this in the future)
  5. $ node index.js run --auth.username=foo --auth.password=bar -u https://www.example.com,https://www.example.com/another/page.html