Created on 8 February 2022, over 2 years ago
Updated 23 September 2023, 9 months ago

This modules uses really a lot of css files.

Is there a way (e.g. in my custom module) to aggregate css files together, but only the css files from this theme (Barrio). All other css files should be aggragated by Drupal itself (/admin/config/development/performance).

How can I write some lines of code in my custom module to aggregate all or specific css files of the bootstrap_barrio module together to one css file? Not only for guest, fix aggregation also if logged in as admin.

Or is there a better way?

💬 Support request
Status

Closed: works as designed

Version

5.5

Component

Code

Created by

🇦🇹Austria drupalfan2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India ravi kant Jaipur

    @drupalfan2

    You can add minimum required files of bootstrap styles.
    1. Remove CDN bootstrap form subtheme.

    bootstrap_cdn:
      js:
        //cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js: {}
      css:
        component:
          # //cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css: {}

    2. Download compiled styles from bootstrap website and past in root of sub theme.
    3. Now include required styles as explained on bootstrap website. It can add in component where was CDN url as first step.

  • Status changed to Closed: works as designed 9 months ago
  • 🇵🇪Peru hatuhay Lima
Production build 0.69.0 2024