Paths dependent on install (Drupal vs standalone)#2
Paths dependent on install (Drupal vs standalone)#2evanmwillhite wants to merge 1 commit intomasterfrom
Conversation
|
This does make paths work if accessing pattern-lab through: In the case of emulsify (or theme based on emulsify) I've found this relative path seems to work everywhere: |
|
This PR is a really clever and important fix! Is there a way to avoid hard-coding the In case it's helpful, we can determine the theme name from the string passed to The bigger issue I see is the assumption that the " I'm not sure there's a good way to get around this issue. Relative paths assume a certain structure to the patterns directory. And I don't see a way to reliably build absolute paths given the " |
If you're running Pattern Lab inside of Drupal (e.g.,
DRUPAL/themes/contrib/emulsify/pattern-lab/public/), the paths determined by this extension are different. This tries to fix the broken ones in Drupal while keeping it working in standalone Emulsify installations