Hey there! I created a working Drupal 8 version of your module. You can find it here https://github.com/Hydraner/breakpointsjs and I also attached a patch based on the 7.x-2.x branch.

I basically ported the module straight to D8 without touching the js API. Since libraries API is broken right now, I added the enquire library to the module, so it can be used till library fixed their issues. I also removed support for matchmedia to reduce the complexibilty, since D8 is not supporting older browsers anyways...

CommentFileSizeAuthor
#2 drupal_8_port.patch20.12 KBhydra

Comments

Hydra created an issue. See original summary.

hydra’s picture

StatusFileSize
new20.12 KB
lucas.constantino’s picture

Thanks for the work! I'm not really using Drupa 8 yet, so I won't review nor close the issue until someone else tries it, but really thanks for the effort!

cyberschorsch’s picture

Status: Needs review » Reviewed & tested by the community

We are using it in production right now, works fine for us

sanduhrs’s picture

A release would be nice. @lucas.constantino would you mind adding me as a con-maintainer?