Skip to content

Commit

Permalink
Replace 'append' with 'prepend' in Vite example. (laravel#8777)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer authored May 6, 2023
1 parent 0a76114 commit bbd235c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vite.md
Original file line number Diff line number Diff line change
Expand Up @@ -808,7 +808,7 @@ For example, the `vite-imagetools` plugin outputs URLs like the following while

The `vite-imagetools` plugin is expecting that the output URL will be intercepted by Vite and the plugin may then handle all URLs that start with `/@imagetools`. If you are using plugins that are expecting this behaviour, you will need to manually correct the URLs. You can do this in your `vite.config.js` file by using the `transformOnServe` option.

In this particular example, we will append the dev server URL to all occurrences of `/@imagetools` within the generated code:
In this particular example, we will prepend the dev server URL to all occurrences of `/@imagetools` within the generated code:

```js
import { defineConfig } from 'vite';
Expand Down

0 comments on commit bbd235c

Please sign in to comment.