I'm taking my first steps with Drupal 8, starting with a custom theme. As a result I'm making incremental changes and testing them.
I've found that in order to be able to tweak CSS you have to turn off aggregation. The normal: change css, drush cc css-js
, reload page workflow doesn't work unless aggregation is disabled.
But I'm also having difficulty with Drupal not picking up changes to the yaml files, e.g. add css to the THEME.libraries.yml file - no drush cc ...
command has any effect. The only thing I've found to work is drush cr
(or drupal cache:rebuild
) which adds about 20-30s delay in my workflow.
Is there a quicker workflow for development?
drush cr all
time drush cr all: 10.69s user 0.26s system 63% cpu 17.123 total
. And then the next page load takes ages, too of course. That's on a VM with 4Gb RAM and 2 cores and SSD drives, 2 nodes(!) and nothing else.time drupal cache:rebuild all 11.38s user 0.29s system 62% cpu 18.678 total
drupal
took 18s. More resources is not an option.time drush cr all: 10.69s
30/10 ~= 3