1.0.12 • Published 2 years ago

acclaimed v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Acclaimed CSS

Critical CSS for everyone!

Installation

npm install acclaimed
yarn add acclaimed

Usage

Either create a new script file, include acclaimed package and run the acclaimed.critical() function

const acclaimed = require('acclaimed')

acclaimed.critical()

or use the acclaimed command directly in your terminal.

Configuration

Acclaimed CSS uses .acclaimed.json file to read the config. The example is shown below.

Always put your config file in the root of the project if you are running acclaimed via script. Always put your config file in the directory from which you run the acclaimed command in the terminal.

[{
  "css": "https://www.silvestar.codes/css/style.css",
  "out": "home.min.css",
  "url": "https://www.silvestar.codes/",
  "width": 1920,
  "height": 1800,
  "keepLargerMediaQueries": true,
  "strict": false,
  "blockJSRequests": true,
  "renderWaitTime": 300,
  "timeout": 60000,
  "forceExclude": ["@font-face"],
  "phantomJsOptions": {
    "ssl-protocol": "any",
    "ignore-ssl-errors": true
  }
},{
  "css": "https://www.silvestar.codes/css/style.css",
  "out": "portfolio.min.css",
  "url": "https://www.silvestar.codes/portfolio/",
  "width": 1920,
  "height": 1800,
  "keepLargerMediaQueries": true,
  "strict": false,
  "blockJSRequests": true,
  "renderWaitTime": 300,
  "timeout": 60000,
  "forceExclude": ["@font-face"],
  "phantomJsOptions": {
    "ssl-protocol": "any",
    "ignore-ssl-errors": true
  }
}]

All options are visible on the Penthouse site.

Tutorial

https://www.silvestar.codes/articles/extracting-and-using-critical-css-on-my-eleventy-site/

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago