1.0.12 • Published 1 year ago

acclaimed v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago