0.0.5 • Published 9 years ago

node-css-concatinator v0.0.5

Weekly downloads
9
License
ISC
Repository
github
Last release
9 years ago

Still in dev... do not use yet...

node-css-concatinator

concatnates all your css files and copies your assets to a location that is next to the output to make sûre they are available.

Parses the css files and copies the assets to an reachable directory relative to the final concatenated file

npm version 0.0.4

Install

npm install node-css-concatinator --save-dev

Usage

The following example will concatenate style.css and otherCssFile.css into one file and copy all the assets necessary relatively to the destPath

var Concatenator = require('node-css-concatenator')
var path= require('path')
var srcPath = path.join(__dirname, '..','src', 'style')
var destPath = path.join(__dirname, '..', 'build', 'style')

var concatenator = new Concatenator()
concatenator.concatenate(destPath, ['style.css', 'otherCssFile.css'], 'style.css')

The following structure :

  • ./style.css
  • ./anotherCssFile.css
  • ./images/image.png
  • ./fonts/fonts.ttf

Will create the following structure :

  • ../build/style.css
  • ../build/images/image.png
  • ../build/fonts/fonts.ttf

Tests

The tests run on mocha with chai-as-promised and sinon

npm test
0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago