You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/guide/api-plugin.md
+2
Original file line number
Diff line number
Diff line change
@@ -480,6 +480,8 @@ A Vite plugin can additionally specify an `enforce` property (similar to webpack
480
480
- User plugins with `enforce: 'post'`
481
481
- Vite post build plugins (minify, manifest, reporting)
482
482
483
+
Note that this is separate from hooks ordering, those are still separately subject to their `order` attribute [as usual for Rollup hooks](https://rollupjs.org/plugin-development/#build-hooks).
484
+
483
485
## Conditional Application
484
486
485
487
By default plugins are invoked for both serve and build. In cases where a plugin needs to be conditionally applied only during serve or build, use the `apply` property to only invoke them during `'build'` or `'serve'`:
0 commit comments