Open Nikschavan opened 2 years ago
I have reproduced this in this repo - https://github.com/Nikschavan/laravel-mix-error
You can clone this repo, run npm install
and then npm run build
to se the error. I was able to fix this error with some changes in the plugin definition by checking the postcss blilerplate plugin although I am not sure if this is the right approach, would love to get some feedback.
I am getting similar error when using this in grunt with @lodder/grunt-postcss
Warning: [object Object] is not a PostCSS plugin Use --force to continue.
The PR #146 seems to be fixing this when using it with grunt as well.
Laravel Mix internally uses webpack and allows you to add postcss plugins.
I am trying to use it with
postcss-flexibility
, although I am seeing this following error log - This error only happens with this postcss plugin, I tried a few other plugins and this error does not seem to occur.