@tycrek/express-postcss
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

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.

Package Sidebar

Install

npm i @tycrek/express-postcss

Weekly Downloads

26

Version

0.4.1

License

ISC

Unpacked Size

4.39 kB

Total Files

7

Last publish

Collaborators

  • tycrek