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

ember-inline-css

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-inline-css

An Ember/Glimmer addon to inline app css

  • 0.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

ember-inline-css

An Ember and Glimmer addon to inline CSS files into HTML.

Installation

ember install ember-inline-css

Then restart your Ember server. Your styles will be inlined!

Usage

This addon will take the application and vendor CSS <link> tags in the application's index.html file and replace them with inline <style> tags.

No configuration is required, it "Just Works".

Options

Options are passed to ember-inline-css by adding the following to your ember-cli-build.js:

const EmberApp = require('ember-cli/lib/broccoli/ember-app');

module.exports = function(defaults) {
  let app = new EmberApp(defaults, {
    'ember-inline-css': {
      /* pass options here */
    }
  });

  return app.toTree();
};

The following options are available:

optiondescription
filterProvide an array of CSS files to be inlined. For example: filter: ['/assets/vendor.css'] would only inline the vendor styles, leaving the application styles untouched.

Keywords

FAQs

Package last updated on 09 Mar 2018

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