Problem/Motivation
The path logic is painful when using sub themes to overwriting libraries.
Lets say we have 2 themes : base and subtheme
If I want to remove the toolbar.theme.css in my basetheme (base) and i set my active theme set to "subtheme"
name: base
type: theme
base theme: classy
libraries-override:
toolbar/toolbar:
css:
theme:
css/toolbar.theme.css: false
subtheme:
name: subtheme
type: theme
base theme: base
core: '8.x'
Oki so that works fine toolbar.theme.css is removed when i use my subtheme, and it "inherits" the removing of toolbar.theme.css
But if I wanna do the same with a the theme that do not uses a subtheme i have to change the paths
name: basedrop
type: theme
base theme: stable # or classy
core: '8.x'
libraries-override:
toolbar/toolbar:
css:
theme:
/core/themes/stable/css/toolbar/toolbar.theme.css: false
The path for toolbar.theme.css have to be set to now to /core/themes/stable/css/toolbar/toolbar.theme.css
instead of css/toolbar.theme.css: false
thats kinda confusing
Proposed resolution
make paths for overwriting core allways be the same path
Remaining tasks
User interface changes
API changes
Data model changes