conradz / rework-file

Helper to read input file and pass it to rework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rework-file

NPM Build Status

Helper to read the input file and pass it to rework.

Call rework-file the same as you would call rework, except that you must pass the file name instead of the file contents. It will also set the source option to the file name if it is not set in the options.

var rework = require('rework-file');

// rework-file(fileName, [opts])

rework('my-file.css')
    .use(myPlugin())
    .toString();

About

Helper to read input file and pass it to rework


Languages

Language:JavaScript 97.8%Language:CSS 2.2%