Skip to content
Ember CLI addon which wraps Critical, to extract & inline critical-path (above-the-fold) CSS from HTML
JavaScript HTML CSS
Branch: master
Clone or download
Pull request Compare This branch is 8 commits ahead of shipshapecode:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
tests
.bowerrc
.editorconfig
.ember-cli
.eslintrc.js
.gitignore
.jshintrc
.npmignore
.travis.yml
.watchmanconfig
LICENSE.md
README.md
ember-cli-build.js
index.js
package-lock.json
package.json
testem.js

README.md

ember-cli-critical

This addon adds an ember-cli post build hook which runs your built app through Critical

Critical extracts & inlines critical-path (above-the-fold) CSS from HTML

It will remove the extracted CSS from your stylesheets and rewrite the link tags to point to the new files after inlining.

Installation

ember install ember-cli-critical

Configuration

By default this addon will run only on production builds, but you can change this by overwriting the enabled setting in your ember-cli-build.js

{
  "ember-cli-critical": {
    enabled: true,
    critical: {
      // critical options
    }
  }
}

See Critical usage for available options.

Running Tests

  • npm test (Runs ember try:each to test your addon against multiple Ember versions)
  • ember test
  • ember test --server
You can’t perform that action at this time.