postcss / sugarss

Indent-based CSS syntax for PostCSS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: is not a PostCSS plugin

comerc opened this issue · comments

reconstruction:

const sugarss = require('sugarss');
const sorting = require('postcss-sorting');
const postcss = require('postcss');
let s = `
.test
    color: red
`;
postcss([sorting], { parser: sugarss }).process(s).then(function (result) {
    console.log('test', result.content);
});

Error: is not a PostCSS plugin at Processor.normalize (/postcss/lib/processor.js:60:23)