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

Add custom build directory and hot file to Vite tag #6752

Merged
merged 3 commits into from Sep 21, 2022

Conversation

joshuablum
Copy link
Member

@joshuablum joshuablum commented Sep 20, 2022

Closes statamic/ideas#866

Adds the ability to set a custom build directory and hot file location via Laravel's Vite implementation. Requires laravel/vite-plugin >=0.6.

Example usage:

{{ vite src="resources/css/tailwind.css|resources/js/site.js" directory="bundle" hot="storage/vite.hot" }}

src/Tags/Vite.php Outdated Show resolved Hide resolved
src/Tags/Vite.php Outdated Show resolved Hide resolved
@jasonvarga jasonvarga merged commit 971e400 into 3.3 Sep 21, 2022
@jasonvarga jasonvarga deleted the add-custom-options-to-vite-tag branch September 21, 2022 13:16
@ncla
Copy link
Contributor

ncla commented Sep 21, 2022

Worth mentioning that you will need to update laravel/framework to be ^9.26 at minimum. I was on slightly older version and it threw exception about withEntryPoints method missing on Vite class.

code-schoenberger pushed a commit to code-schoenberger/cms that referenced this pull request Sep 22, 2022
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.

Add build directory attribute to Vite tag
4 participants