This project is not covered by Drupal’s security advisory policy.

Let's say you want to use Acquia Site Studio to build components but bringing in your own CSS/JS libraries.

This module checks for Site Studio Layout Canvas fields being used in node entities and automatically attaches libraries for the current theme based on the component's machine name.

All you need to do is to define your libraries on your custom theme as such:

cpt_my_component_machine_name:
  css:
    component:
      css/cpt_my_component_machine_name.css: {}
  js:
    js/cpt_my_component_machine_name.js: {}

cpt_my_component_machine_name2:
  css:
    component:
      css/cpt_my_component_machine_name2.css: {}
Supporting organizations: 
Sponsored open-source contribution time.

Project information

Releases