Socket
Book a DemoInstallSign in
Socket

html-bricks-plugin-inline-css

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

html-bricks-plugin-inline-css

Inline css for HTML-bricks

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

html-bricks-plugin-inline-css

Inline CSS for html-bricks.

Essentially parses each HTML file's <link rel="stylesheet" type="text/css"> tags and includes their content in a <style> tag instead. Order is preserved.

The goal of this is to prevent FOUC, but the tradeoff of course is longer initial page load.

Requirements

html-bricks >= 0.3.

Installation

Install using npm

npm install --save-dev html-bricks-plugin-inline-css

Then include the plugin in your config

{
  "plugins": [
    "plugin-inline-css"
  ]
}

Usage

Include your css stylesheets with a <link rel="stylesheet" type="text/css"> (you need to specify both rel and type) like you would normally do. Then grab a cup of ☕ and relax yourself as your stylesheets are converted into <style> tags.

Keywords

inline css

FAQs

Package last updated on 09 Oct 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.