Skip to content

Template for writing a postprocessor with CSScomb Core. Fork and use.

Notifications You must be signed in to change notification settings

csscomb/core-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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; /* (╯°□°)╯︵ ┻━┻ */
}

About

Template for writing a postprocessor with CSScomb Core. Fork and use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published