Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-cli-critical

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-cli-critical

Ember CLI addon which wraps Critical, to extract & inline critical-path (above-the-fold) CSS from HTML

  • 0.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 07 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc