libraries-override not working I'm trying to figure out how I can remove the default css libraries of Drupal 8 on the theme I'm working on. I tried using libraries-override: to remove a specific CSS but it doesn't seem to be working. The css file is still showing. As you can see the align.module.css is still showing on Google Network Tab. I'm not sure if the method I'm using is deprecated or incorrect



name: Barebones
description: Drupal light
type: theme
core: 8.x

base theme: stable

libraries-override:
  system/base:
    css:
      component:
        /core/modules/system/css/components/align.module.css: false




libraries-override:
  system/base: false
You can override a library using the filename as key.

libraries-override:
  system/base:
    css:
      component:
        css/components/align.module.css: false



But if your asset was already overwritten by another module (e.g. classy theme overriding a core system asset), you have to use the full path instead, example:

libraries-override:
  system/base:
    css:
      component:
        /core/themes/stable/css/system/components/ajax-progress.module.css: false


Also see this issue.