@@ -117,7 +117,7 @@ With this option set, SSR will be turn on into your application.
117117This defines where Vite needs to look when compiling your server
118118entrypoint files.
119119
120- Default: ` src/ resources/app/app.tsx`
120+ Default: ` resources/app/app.tsx `
121121
122122#### ssrBuildDirectory
123123
@@ -166,7 +166,7 @@ function to the `styleAttributes` option.
166166export default {
167167 vite: {
168168 styleAttributes : ({ src , url }) => {
169- if (src === ' src/ resources/css/admin.css' ) {
169+ if (src === ' resources/css/admin.css' ) {
170170 return {
171171 ' data-turbo-track' : ' reload'
172172 }
@@ -198,7 +198,7 @@ accepts an array of entrypoints and returns the script and the link tags.
198198<head >
199199 <meta charset =" UTF-8" >
200200 <meta name =" viewport" content =" width=device-width, initial-scale=1.0" >
201- @vite(['src/ resources/js/app.ts'])
201+ @vite(['resources/js/app.ts'])
202202</head >
203203<body >
204204
@@ -236,11 +236,11 @@ during development.
236236- Return a URL pointing to the output filename during production.
237237
238238``` html
239- <link rel =" stylesheet" href =" {{ asset('src/ resources/css/app.css') }}" >
239+ <link rel =" stylesheet" href =" {{ asset('resources/css/app.css') }}" >
240240```
241241
242242``` html title="Output in development"
243- <link rel =" stylesheet" href =" http://localhost:5173/src/ resources/css/app.css" >
243+ <link rel =" stylesheet" href =" http://localhost:5173/resources/css/app.css" >
244244```
245245
246246``` html title="Output in production"
@@ -256,7 +256,7 @@ Therefore, you will have to notify Vite about the existence of these
256256assets using its [ Glob imports] ( https://vite.dev/guide/features.html#glob-import ) API.
257257
258258In the following example, we ask Vite to process all the files within the
259- ` src/ resources/img` directory. This code should be written within an entry point file:
259+ ` resources/img ` directory. This code should be written within an entry point file:
260260
261261``` typescript
262262import .meta .glob ([' ../img/**' ])
@@ -265,7 +265,7 @@ import.meta.glob(['../img/**'])
265265Now you can reference the images within your Edge templates as follows:
266266
267267``` html
268- <img src =" {{ asset('src/ resources/img/hero.jpg') }}" />
268+ <img src =" {{ asset('resources/img/hero.jpg') }}" />
269269```
270270
271271## Enabling HMR with React
@@ -281,7 +281,7 @@ written before you include the entrypoints using the `@vite` tag.
281281 <meta charset =" UTF-8" >
282282 <meta name =" viewport" content =" width=device-width, initial-scale=1.0" >
283283 @viteReactRefresh()
284- @vite(['src/ resources/js/app.ts'])
284+ @vite(['resources/js/app.ts'])
285285</head >
286286<body >
287287
@@ -300,7 +300,7 @@ import athenna from '@athenna/vite/plugins/client'
300300export default defineConfig ({
301301 plugins: [
302302 athenna ({
303- entrypoints: [" src/ resources/js/app.ts" ],
303+ entrypoints: [" resources/js/app.ts" ],
304304 }),
305305 react () 👈
306306 ]
@@ -341,8 +341,8 @@ import athenna from '@athenna/vite/plugins/client'
341341export default defineConfig ({
342342 plugins: [
343343 athenna ({
344- entrypoints: [' src/ resources/js/app.ts' ],
345- reloads: [' src/ resources/views/**/*.edge' ],
344+ entrypoints: [' resources/js/app.ts' ],
345+ reloads: [' resources/views/**/*.edge' ],
346346 assetsUrl: ' https://cdn.example.com/' ,
347347 }),
348348 ]
@@ -386,7 +386,7 @@ export default {
386386 vite: {
387387 // ...
388388
389- ssrEntrypoint: ' src/ resources/app/app.tsx' ,
389+ ssrEntrypoint: ' resources/app/app.tsx' ,
390390 ssrBuildDirectory: Path .public (' assets/server' )
391391 }
392392}
@@ -468,7 +468,7 @@ In case you want to import other components beside the entrypoint
468468you can use the ` loadComponent() ` method:
469469
470470``` typescript
471- const { createApp } = await React .loadComponent (' src/ resources/app/app.tsx' )
471+ const { createApp } = await React .loadComponent (' resources/app/app.tsx' )
472472```
473473
474474## Manifest file
0 commit comments