Skip to content

Zackio/Gulp-CSS-TOC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-css-toc

Appends a TOC to the beginning of a CSS file. The header must be formatted as given below.

Install

$ npm install --save-dev gulp-css-toc

Usage

var gulp = require('gulp');
var gulpCssToc = require('gulp-css-toc');

gulp.task('default', function () {
	return gulp.src('src/style.css')
		.pipe(gulpCssToc())
		.pipe(gulp.dest('dist'));
});

Input

Headings must be styled as so:

/* ===================================================== */
/* Header Styles                                         */
/* ===================================================== */

Output

Appended to the beginning of the file will be as so:

/*
- Header Styles
- Body Styles
- Footer Styles
*/

About

Gulp plugin to create a TOC for a CSS file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published