ember-cli-critical

0.1.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i ember-cli-critical

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • ivanvanderbyl