inline-css-cli

Inline css like a pro

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
inline-css-cli
0.0.18 years ago8 years agoMinified + gzip package size for inline-css-cli in KB

Readme

inline-css
inline your css like a pro

inline-css -i {souce_file} -o {output/path}

Example

index.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <link rel="stylesheet" href="style.css">
</head>
<body>
</body>
</html>

style.css

body {
 color: rebeccapurple; /* lol */
}
.some-class-style {
 margin: 0 0 999px 0;  
}

will result in
build.html

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
      body {
        color: rebeccapurple; /* lol */
      }
      .some-class-style {
        margin: 0 0 999px 0;  
      }
  </style>
</head>
<body>
</body>
</html>

Install

$ npm i inline-css-cli
$ inline-css