I have hit an issue which I think is quite unusual or peculiar when settingup a child theme.
A commercial parent theme I have bought loads the Slick library like this in its theme.libraries.yml:
slick:
version: VERSION
css:
component:
css/vendor/slick.css: {}
css/vendor/slick-theme.css: {}
js:
js/vendor/slick.min.js: {}
But I don't want the Slick library to be loaded by the parent theme because I will be installing the Slick module, and will be using Slick Views. I found the Slick library loaded by my parent theme was (of course it was) conflicting with the same library loaded by the Slick module.
My idea is somehow in my child theme's childtheme.libraries.yml file override and tell Drupal to ignore the instruction by the parent theme to load the Slick library. If that is not possile, then may I do that in my childtheme.theme file?
The only workaround I could find so far was to hack the parent theme and comment out the lines where Slick library is loaded, but I know this is a bad practice in case I need to update the parent theme in the future for some reason.
What is the best approach for this problem? Thank you.