npm

gulp-css-toc

0.0.0 • Public • Published

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
*/

Readme

Keywords

Package Sidebar

Install

npm i gulp-css-toc

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

3.93 kB

Total Files

4

Last publish

Collaborators

  • zackio