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

fix: render only entrypoint templates #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

webdiscus
Copy link

@webdiscus webdiscus commented Apr 23, 2024

Hello @iamgaby7521,

thank you for the nice webpack starter!

In this PR:

  • remove unused npm packages to reduce install size
  • fix the issue: using the entry option as a path, the plugin renders all templates in all sub dirs, even partials as the entrypoint, that is wrong.
    In the v3.11.0 I have added the entryFilter option to include/exclude templates founded in the entry path. Using this option you can render only main templates and exclude partials. An alternative way would be to keep all partials in other directory, outer the pages folder.

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