Skip to content

jfromaniello/css-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Merge multiple css files with @import clauses.

Installation

npm install css-import

Usage

Given a file like this:

@import "imported.css";
@import "imported2.css";

p {
  font-size: 2px;
}

From code:

var cssImport = require('css-import');
cssImport('/path/to/my/file', {dirs: ['extra base dirs']}, function (err, content) {
	console.log(content); //the joined content
});

From CLI:

cssimport /path/to/my/file \ 
	/path/to/some/extra/base/dir \
	/path/to/some/other/base/dir > output.css

LICENSE

MIT - 2013 - José F. Romaniello

About

merge css files with @import clause

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published