Template for writing a postprocessor with CSScomb Core. Fork and use.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
README.md
package.json

README.md

Template of a postprocessor based on CSScomb Core

This is an example repo to get you up and running with CSScomb Core.
Just fork it and modify for your needs.

This example tool is called Flip Comb.
All it does is replace comments in CSS files with /* (╯°□°)╯︵ ┻━┻ */.

Usage:

var FlipComb = require('flip-comb');
var flipper = new FlipComb({ 'flip-comments': true });

flipper.processDirectory('path/to/css');

Example CSS before:

/* Some important comment */
a {}
/**
 * Another one
 */
p {
    color: panda; /* Pandas! */
}

And after:

/*  (╯°□°)╯︵ ┻━┻ */
a {}
/* (╯°□°)╯︵ ┻━┻ */
p {
    color: panda; /* (╯°□°)╯︵ ┻━┻ */
}