Skip to content

Commit e6debb1

Browse files
aarondfrancisclaude
andcommitted
Update default config for Vite instead of Laravel Mix
- Change trigger from webpack.mix.js to vite.config.js - Change outputs from mix-manifest.json to build/manifest.json - Change output paths from public/css, public/js to public/build/assets Laravel 10+ uses Vite by default instead of Mix. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 68b33ee commit e6debb1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

config/airdrop.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
// this makes the most sense and doesn't need to be changed.
7474
resource_path(),
7575

76-
// Any time the webpack.mix.js file is changed, it could affect the
76+
// Any time the vite.config.js file is changed, it could affect
7777
// the build steps, and therefore the built files.
78-
base_path('webpack.mix.js'),
78+
base_path('vite.config.js'),
7979

8080
// Depending on your package manager, you'll want to uncomment one
8181
// of the following lines. Whenever JS packages are updated or
@@ -120,14 +120,11 @@
120120
* Files or folders that should be included.
121121
*/
122122
'include' => [
123-
// The mix-manifest file tells Laravel how to get your versioned assets.
124-
public_path('mix-manifest.json'),
123+
// The Vite manifest file tells Laravel how to get your versioned assets.
124+
public_path('build/manifest.json'),
125125

126-
// Compiled CSS.
127-
public_path('css'),
128-
129-
// Compiled JS.
130-
public_path('js'),
126+
// Compiled assets from Vite.
127+
public_path('build/assets'),
131128
],
132129

133130
/*

0 commit comments

Comments
 (0)