Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For example, a common best practice is to exclude all the test files form from the Build Scan.

If you decide to ignore the test files, the content of your .slignore file will be similar to:

...

Code Block
*.html
*.png
*.svg

Ignoring all but specific files (whitelisting)

In certain projects, it is easier to define only the files that are required. Below, a sample of .slignorefile definition with that approach:

Code Block
#Ignore everything
*
#Include only files matching below patterns
*chunk*.js
*main*.js