Skip to main content

Excluding directories

In order for React Preview to analyse your project successfully, you may need to exclude some directories such as public and generated sources.

You can do so with the exclude field:

/reactpreview.config.js
const reactpreview = require("@reactpreview/config");
module.exports = reactpreview.config({  exclude: ["build/**", "public/**"],});

If you still experience issues, feel free to open an issue on GitHub!