Home > @fullhuman/postcss-purgecss > UserDefinedOptions > dependencies
UserDefinedOptions.dependencies property
Add PostCSS dependency messages for the content files and globs, so that the dev servers (Vite, webpack and Rspack with postcss-loader, Next.js, Parcel) run the plugin again when the content changes. Set it to false to add no message, e.g. when a bundler rejects a path of the content.
Pass an object to set the root directory of the bundler: the paths outside it get no message. Under Turbopack (Next.js), which stops with an error for a path outside its root, the root defaults to the one Next.js infers (the outermost directory with a workspace marker or a lock file). Set it to the value of outputFileTracingRoot or turbopack.root when the Next.js config sets one of them.
Signature:
dependencies?: boolean | DependenciesOptions;
Default Value
true
