вторник, 3 июля 2018 г.

Dedicated library JS scope by Webpack for a Drupal behaviour

When we create a Drupal theme with different JS libraries which often break core libraries we need separate the theme scope from others. It is one of existed solutions. We separate and wrap js libraries in the scopes with Webpack modules. Out of scope variables are handled by a Webpack plugin.