Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support module paths outside of Magento root #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jissereitsma
Copy link

In my Magento environment, I'm using local composer repositories that are outside of the Magento root. In other words, if Magento lives in /var/www/html, a Magento module could actually be living in /data/extensions/. Unfortunately, this JS util is expecting the module path to be part of the Magento root, and because of that, it fails to detect a custom Tailwind file. This PR adds support for module paths outside of Magento, simply by seeing if the delivered (absolute) path exists.

In my Magento environment, I'm using local composer repositories that are outside of the Magento root. In other words, if Magento lives in `/var/www/html`, a Magento module could actually be living in `/data/extensions/`. Unfortunately, this JS util is expecting the module path to be part of the Magento root, and because of that, it fails to detect a custom Tailwind file. This PR adds support for module paths outside of Magento, simply by seeing if the delivered (absolute) path exists.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant