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

Feature: Enable Bud bundle support / Fix EnqueueStyles & EnqueueScripts #75

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

robmeijerink
Copy link
Contributor

The current Sage theme comes with Bud by default now, instead of Laravel Mix. Bud uses bundle names to enqueue assets and not paths like before. I made the adjustments so that we can now use the Bud bundles as a value of EnqueueStyles and EnqueueScripts. It would look like this:

EnqueueStyles: nameofbundle
EnqueueScripts: nameofanotherbundle

If the bundle is not found, it will still try to enqueue a path to file in public like before.

I made sure not to break backwards compatibility, so Sage <10 users and Laravel Mix users on older versions will not get in trouble with this update.

@Drifterdnl
Copy link

@MWDelaney, could you please accept this pull request? I have tested this and I am using it in my project as a composer patch but would like to remove the patch as I can not use the patch package on my production environment.

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.

2 participants