0.0.7 • Published 8 years ago

fis-parser-inlinecss v0.0.7

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

fis-parser-inlinecss

fis.match('*.js', {
    parser: [
        fis.plugin('inlinecss')
    ]
})

a.css

body {font-size:12px;}

a.js

__css("./a.css");

output: a.js

;(function (content) {
  var head = document.getElementsByTagName("head")[0] || document.documentElement;
  var sty = document.createElement("style");
  sty.type = "text/css";
  // IE
  if (sty.styleSheet) {
    sty.styleSheet.cssText = content;
  } else {
    sty.innerHTML = content;
  }
  head.appendChild(sty);
})("body {font-size:12px;}");
0.0.7

8 years ago

0.0.6

8 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago