Drupal8 attaching libraries to specific pages
Drupal 8 is just days away from stable release and I have finally had a chance to play.
It's a full rewrite so lots of changes, the admin interface seems much cleaner.
This is a short note on attaching libraries in a custom theme.
JavaScript and Stylesheets get attached via libraries which are defined in the {theme-name}.libraries.yml file.
which could look something like:
global-styling:
version: VERSION
css:
base:
css/theme/blocks.css: {}
code-highlight:
version: 1.x
css: