Add a command flag to generate new project directly with Laravel Mix configuration instead of Vite
See original GitHub issueHello, Laravel team. I just wanted to suggest an improvement. I find the update from mix to vite very cool but I think that there are many simple projects that uses Laravel Mix and basic SSR even though modern web app are built with SPA tech stack. I think we can have a command flag like laravel new project --mix
to generate a project with mix instead of vite config because it can be annoying to modify, create a lot of file just to initialize a project…
Issue Analytics
- State:
- Created a year ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Asset Bundling (Vite) - The PHP Framework For Web Artisans
Vite has replaced Laravel Mix in new Laravel installations. ... Vite is configured via a vite.config.js file in the root of your project....
Read more >I can't run 'npm run dev' since Laravel updated with Vite
Install Laravel Mix (because by the new installation it is not there anymore):. npm install --save-dev laravel-mix. Create a webpack.mix.js file ...
Read more >The Mix CLI | Laravel Mix Documentation
To build assets for development, reach for the npx mix command. Mix will then read your webpack.mix.js configuration file, and compile your assets....
Read more >Assets are not served when running "sail npm run dev" without ...
6 to Vite 3.0.9 (laravel-vite-plugin 0.5.4) on Laravel 9.2.5.1. ... The assets resources/css/app.css and resources/js/app.js are not served when i ...
Read more >Build Options - Vite
Directly customize the underlying Rollup bundle. This is the same as options that can be exported from a Rollup config file and will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For anyone here preferring Mix over Vite, I suggest you write a preset instead, with your own opinionated modifications. I think having an official Vite and Mix scaffolding would be too much to maintain and quite unnecessary.
Ok, thanks @innocenzi.