Sometimes there are files in your Application that you don't want to protect or want to exclude from your Application in order to avoid exceeding your files limit. You can tell Jscrambler to ignore files by using
Create a file in your root project folder named
.jscramblerignore. This file specifies files that Jscrambler should intentionally ignore when protecting an Application. These files will not be protected neither will they affect your files limit.
Please be aware that the
.jscramblerignore should be submitted alongside your Application. This means that if you are using our API you should send this file whenever you protect your Application.
Each line in a
.jscramblerignore file specifies a pattern that represents a path to one or more files:
#serves as a comment
!" which negates the pattern; any matching file excluded by a previous pattern will become included again. For patterns that begin with a literal "
!", for example "
!important.js", put a backslash "
\" in front of the first "
!", like "
foo/will match a directory
fooand paths underneath it, but will not match a regular file
/*.js" matches "
foo.js" but not "
Two consecutive asterisks "
**" in patterns matched against full pathname may have a special meaning:
**" followed by a slash means match in all directories. For example, "
**/foo" matches file or directory "
foo" anywhere. "
**/foo/bar" matches file or directory "
bar" anywhere that is directly under directory "
/**" matches everything inside. For example, "
abc/**" matches all files inside directory "
abc" with infinite depth
a/**/b" matches "
a/x/y/b" and so on
The following is an example of a
# ignore all garbage folders **/garbage/ # ignore all files in vendor folder vendor/ # except foo.js !vendor/foo.js