Search
K

The Veloignore file

Velocity's .veloignore file provides a simple way to explicitly ignore files within your build context that are updated during a development session (relevant for path mapping as well).
It works similarly to a .gitignore file, in that it is a list of filenames and glob patterns but in this case, the paths are absolute (compared to the root filesystem folder).
Matched files and folders will not be watched for changes during a Velocity development session. This means that changes to files matching patterns included in the .veloignore will not trigger a rebuild during a Velocity development session.

File location

The .veloignore file needs to exist within the root of your IDE project — i.e., at the same level as your .gitignore file.

Example .veloignore file

# Ignore development and build files
node_modules/
npm-debug.log
yarn-error.log
package-lock.json
yarn.lock
# Ignore test files
__tests__/
test/
tests/
*.spec.js