Usage
var Koa = var mount = var watch = var app = if processenvNODE_ENV === 'development' app app app
API
watch([opts])
Create a middleware function. If opts.file
is not defined, path to file will be resolved to ctx.path
relative to opts.root
or process.cwd()
.
Options
Options are forwarded to both chokidar and postcss.
- file
<string>
CSS entry file - root
<string>
Path from which to resolve file paths (defaults to cwd) - plugins
[<string>]
List of plugins to use with postcss
Install
$ npm install -S koa-postcss-watch
License
MIT