Closed plashenkov closed 8 years ago
The problem is it's not integrated in postcss-cli atm :). The current way is described here --local-plugins. This module is more of a future PoC for a unified postcss.config.js
approach as discussed here PostCSS #813. I sadly can't finish it right now, bc of other commitents i have. It would be only a PR to postcss-cli to change autoloading plugins with this module and get rid of the -c|config
flag, when a postcss.config.js is present. For gulp,grunt and friends i need to change some slightly parts of it to work in a convenient way, e.g resolve the promise in this case and assign the plugins to a variable const plugins = require('postcss-load-config').plugins()
(note: postcss-load-plugins + postcss-load-options === postcss-load-config :) )
For some reason postcss-load-plugins doesn’t work with postcss-cli in my configuratin. Am I missing something?
Here is my package.json:
Now trying to start:
npm run watch:css
. Here is the output:I’ve also tried to specify postcss-load-plugins as a plugin in command line (
postcss -u postcss-load-plugins
), but it does not work either.Thank you in advance.