Remove import checking for now since it's not working and causes processing to always run.
Fixed a bug with the compile checks causing processing to run on every request, whether necessary or not.
Taking a hint from node-sass-middleware, we now only attempt to process css on requests to actual CSS files. This means that glob source files are no longer necessary, since we only try to process a source CSS file with the same name as the CSS file on the request.
E.g. /public/css/main.css
will look for an input file /my/source/dir/main.css`
. We don't have to play around with ignoring imports now, since each request
will have a single entrypoint.
Now using mkdirp to create the destination directory if it doesn't already exist.
koa-postcss now supports passing globs as src patterns.
Initial release. Automatically runs postcss plugins of your choice over a source CSS file on request, and caches the results in a destination directory.