Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix less plugin not able to receive less loader plugins #4645 #12898
Currently we can't declare less loader plugins because plugins can be nested one inside each others, according to https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/bootstrap/load-plugins/load.js#L134
So forwarding the "lessPlugins" attribute to the plugins loader option is a workaround to avoid this problem.
See original issue #4645
But I think Gatsby should rather generalize find a more robust and generalized solution to this conflict between "gatsby plugins with gatsby subplugins" vs "gatsby plugin with plugin taking plugins as params"
referenced this pull request
Mar 27, 2019
I'll do the changes next Monday when I come back from holiday. Thanks for the review Le lun. 15 avr. 2019 à 19:08, Michal Piechowiak <firstname.lastname@example.org> a écrit :…
I'll fix unit tests after README changes - they only break because there is empty array by default, which is not present in snapshots — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub <#12898 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAtvPldmVqTEmsFWczhpbXXr-aHXqQ-Bks5vhLIdgaJpZM4cOUPw> .