Implement CDN as default method for using bulma in base theme.
https://cdnjs.com/libraries/bulma
Add two different subthemes (CDN and local SCSS)
Implement CDN as default method for using bulma in base theme.
https://cdnjs.com/libraries/bulma
Add two different subthemes (CDN and local SCSS)
Comments
Comment #2
nedjoA possible approach using a single theme would be: default to CDN, but if Bulma is downloaded to libraries/bulma, use that instead. To do this, swap in the local version using
hook_library_info_alter(), which the patch at #2901948: Support Bulmaswatch custom themes is already introducing, or else remove the bulma CSS from .libraries.yml and instead usehook_library_info_build().In any case, probably, we should break the existing
bulma/globallibrary into two libraries: one for bulma and one for overrides and customizations. That way a subtheme can easily remove base theme overrides without having to assume responsibility for the bulma CSS file.Part of introducing a CDN is version handling. Probably this is a new theme setting, version. The Bootstrap theme has some fairly involved code for selecting a CDN provider.
Comment #3
nedjoEnabling work was encluded in #2901948: Support Bulmaswatch custom themes.
Comment #6
nedjoDone. Moved the question of a second starterkit to #2905005: Provide documentation and/or an advanced starterkit for customizing bulma.