postcss / sugarss

Indent-based CSS syntax for PostCSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PostCSS Middleware

eduarddotgg opened this issue · comments

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?

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

Thanks for your kind help!