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

Watch included templates #3

Merged
merged 5 commits into from Jan 24, 2018

Conversation

hobbes7878
Copy link
Contributor

Hey, great plugin!

Currently, parcel doesn't watch for changes in included nunjucks templates, i.e.:

{% include "some/template.njk" %}

This change walks the directory of the base nunjucks file and adds any templates it finds with the .njk extension to parcel's dependencies.

This is basically so you get auto-reloading in parcel as you're editing templates...

Also added a quick line to the README that the plugin requires your nunjucks templates have extension .njk, which wasn't totally clear to me when I first installed the plugin.

@hobbes7878 hobbes7878 changed the title Watch templates Watch included templates Jan 24, 2018
@devmattrick devmattrick merged commit 8dd2831 into chocolateboy:master Jan 24, 2018
@devmattrick
Copy link
Collaborator

Looks good. Thanks for the help!

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

Successfully merging this pull request may close these issues.

None yet

3 participants