inline-css-cli

0.0.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i inline-css-cli

Weekly Downloads

44

Version

0.0.1

License

MIT

Last publish

Collaborators

  • drkraken