question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a command flag to generate new project directly with Laravel Mix configuration instead of Vite

See original GitHub issue

Hello, 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:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
innocenzicommented, Jul 8, 2022

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.

2reactions
csof3cencommented, Jul 9, 2022

Ok, thanks @innocenzi.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found