npm.io
4.0.2 • Published 1 year ago

cogs-transformer-directives

Licence
MIT
Version
4.0.2
Deps
1
Size
5 kB
Vulns
0
Weekly
0

cogs-transformer-directives

A directives transformer for Cogs.

Build Status

Extract require and link directives from a file's initial comments.

In the following example, the file itself will be proceeded by every file in the templates directory.

//= requireself
//= require ./templates/**/*

var foo = 'bar';

In this example, the file will be prepended with normalize.css.

/*
= require bower_components/normalize/normalize.css
*/

.foo {
  color: blue;
}