Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to exclude certain folders and files #27

Closed
swissspidy opened this issue Apr 27, 2018 · 0 comments
Closed

Add option to exclude certain folders and files #27

swissspidy opened this issue Apr 27, 2018 · 0 comments

Comments

@swissspidy
Copy link
Member

swissspidy commented Apr 27, 2018

The make-pot command currently scans all files with a .php extension (or .js, see #26).

In many cases, there might be files and folders that shouldn't be scanned. Some examples:

  • node_modules/ (npm modules)
  • Gruntfile.js
  • webpack.config.js
  • vendor/ (Composer dependencies)
  • .git, .svn, .svn -> basically anything with a dot prefix

Being able to exclude these files would increase performance and create less POT files with potentially unwanted strings in it.

Perhaps there could be even a default list of folders and files to include.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant