postcss / sugarss

Indent-based CSS syntax for PostCSS
MIT License
707 stars 39 forks source link

PostCSS Middleware #22

Closed eduarddotgg closed 8 years ago

eduarddotgg commented 8 years ago

I would like to use SugarSS with PostCSS Middleware. What is the best way to set it up? i'm trying to do something like this but it doesn't work

server.use('/webroot/*.sss', postcssMiddleware({
    src: function(req) { return path.join(__dirname, req.originalUrl); },
    plugins: postcssPlugins,
    syntax: sugarss
}));

or this issue should be directed to PostCSS Middleware plugin?

TrySound commented 8 years ago

@admdh Yep. Middleware should allow more options. Thanks for pointing.

eduarddotgg commented 8 years ago

Thanks for your kind help!