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

Allow ignoring files on spress-watch #99

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

froboy
Copy link
Contributor

@froboy froboy commented Feb 5, 2018

In the process of working with compiled JS on a react-based project, I had the need to tell spress to ignore rebuilding the project when a certain file changed (because I'm compiling it with a different watcher and only want the spress project rebuilt when the compiled js is done building). This allows developers to pass an additional variable to the watch task, allowing for extra files to be added to the watch OR for files to be ignored. In my project, I added overrides.spress_watch_extras = '!../../src/content/assets/js/_*.js';, which allows me to ignore any files prefixed with an _, just in case I might need more than one down the line.

@froboy froboy requested a review from labbydev February 5, 2018 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant