0.4.1 • Published 7 months ago

@tycrek/express-postcss v0.4.1

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

express-postcss

NPMCBT badge

Express.js middleware for on-demand PostCSS compiling

Usage

Install with npm i @tycrek/express-postcss, then import/require it in your code.

const { epcss } = require('@tycrek/express-postcss');
// or
import { epcss } from '@tycrek/express-postcss';

Then, use it as middleware.

app.use('/css', epcss({ /* options */ }));

Any requests to /css will be handled by the middleware.

For a more complete example, see test/test.js.