#3242·unocss

Support `pipeline.include` option when using unocss nuxt module

Author: the94airCreated Oct 16, 2023Updated Sep 29, 2026
Labelsbugnuxt

Clear and concise description of the problem

Currently the unocss nuxt module support adding pipeline exclude settings although it doesn't allow us to modify the include settings to add more directories to vite build. So adding the include option does nothing.

Suggested solution

Add logic to attach the include options similar to how its implemented with exclude option https://github.com/unocss/unocss/blob/main/packages/nuxt/src/options.ts#L33

Alternative

No response

Additional context

Could be similar to #3232 but looks related to webpack and node_modules instead. Currently, the // @unocss-include comment method is working fine and could be considered a workaround, although its not practical with multiple files and nested folders and relying on path instead is more useful.

Validations

  • Read the Contributing Guidelines.
  • Read the README.md of using the package.
  • Already used the Interactive Docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.