Closed jsonmaur closed 8 years ago
Doesn't seem to resolve PostCSS plugins correctly. This is what I have:
var postcss = require('browserify-postcss') b.transform(postcss, { plugin: ['sugarss'], basedir: path.resolve(__dirname, '../../../'), inject: true, })
The basedir resolves to the root of my project where node_modules is. I have sugarss installed, and I get the following error when trying to bundle:
node_modules
sugarss
Error: [object Object] is not a PostCSS plugin
Actually realized sugarss isn't a plugin, it's a parser. My mistake!
Doesn't seem to resolve PostCSS plugins correctly. This is what I have:
The basedir resolves to the root of my project where
node_modules
is. I havesugarss
installed, and I get the following error when trying to bundle: