Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

custom blade directive to add entirety of ignitionjs with config #26

Open
AdrianMrn opened this issue Mar 26, 2020 · 1 comment
Open

Comments

@AdrianMrn
Copy link
Collaborator

AdrianMrn commented Mar 26, 2020

look into a custom blade directive @ignitionjs that adds the entire ignition script, including config. --> This would also lessen the impact on the frontend build process.

The config has the added parameters Vue and applicationPath. The application path is needed because some error stacks resolve their file to a web URL, so adding the application path to the frame's filenames (like in Laravel) will mess up parts of the UI and display incorrect file paths. So it's better to add the application path when opening the editor.

@AdrianMrn
Copy link
Collaborator Author

AdrianMrn commented Mar 30, 2020

@mpociot What do you think about this one? Seb and I think it would be pretty neat to be able to use @ignitionjs in a Blade file, which (only in dev mode) would add a couple of lines to get ignition-js from a CDN and initialise it with the existing ignition php config.

Do you think this is something that can be added to the ignition Laravel package?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant