Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Notifications You must be signed in to change notification settings

csscomb/core-template

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
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

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.