Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript CSS

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
lib
test
README.md
index.js
package.json

README.md

CssJoin

Join css that @import syntax loaded file.

usage

$ node bin/cssjoin.js some.css

In node.js

var cssInclude = require('cssInclude');

cssInclude("sample.css",function(err,extendedCss){
  console.log(extendedCss);
});

example

Input

main.css

  @import "dir/parts.css";

  .main{
    float: left;
  }

dir/parts.css

.block{
  color:red;
}

And execute

$ node bin/css-inclde.js main.css

Output

.block{
  color:red;
}

.main{
  float: left;
}
Something went wrong with that request. Please try again.