0.3.1 • Published 10 years ago

cssjoin v0.3.1

Weekly downloads
201
License
MIT
Repository
github
Last release
10 years ago

#CssJoinBuild Status Join css that @import syntax loaded file.

##Install

$ npm install -g cssjoin

##Usage Command line

$ cssjoin some.css

in node.js

var cssjoin = require('cssjoin');

//without option
cssjoin("sample.css",function(err,extendedCss){
  console.log(extendedCss);
});

// with option
cssjoin("sample.css"
  ,{
    "paths" : "./include/path"
  }
  ,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

$ cssjoin main.css

Output

.block{
  color:red;
}

.main{
  float: left;
}

Options

-p --include-paths

Add @import paths.

$ cssjoin some.css -p /include/path

if need set some paths can use separator ":"

$ cssjoin some.css -p /include/path:/include/path2:/include/path3

or on windows, use separator ";"

$ cssjoin some.css -p C:\\include\\path\\;C:\\include\\path2\\;C:\\include\\path3\\;
0.3.1

10 years ago

0.3.0

11 years ago

0.2.1

11 years ago

0.2.0-0

11 years ago

0.1.0-0

11 years ago

0.0.3-0

11 years ago

0.0.2-0

11 years ago

0.0.1-1

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago