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

CSS-only changes trigger full rebuild #752

Closed
jcarpenter opened this issue Oct 30, 2019 · 3 comments
Closed

CSS-only changes trigger full rebuild #752

jcarpenter opened this issue Oct 30, 2019 · 3 comments

Comments

@jcarpenter
Copy link

jcarpenter commented Oct 30, 2019

My situation:

  • I have long template build times
    • +4 sec each, due to a regex-heavy Transform which injects citations, using citation-js). If I disable the transform, I get sub-1 second build times.
  • When I'm tweaking CSS, I want instant reload, for faster iteration.
  • But when using both --watch and --serve, CSS file changes trigger full rebuilds—including unchanged templates. This creates long delays between a change and seeing BrowserSync refresh.
  • For context: I have a passthrough copy set up for my styles.

Am I seeing intended behavior? I thought that 11ty ignored unchanged files. But after much digging (through docs and issues), I can't find any information either way.

My current workaround is to disable the transform via an environment variable when working on styles, and enable it for full builds (or when editing templates). But obviously this is suboptimal. Just wondering if I'm overlooking something.

@Ryuno-Ki
Copy link
Contributor

Ryuno-Ki commented Nov 3, 2019

Related to #416, which was closed to collect the ideas in #108, I guess.

@zachleat
Copy link
Member

Yeah, going to close this in favor of #108—unless you think this is fundamentally different than #108 somehow!

@zachleat
Copy link
Member

Note that the larger project is being managed here: https://github.com/orgs/11ty/projects/3

If your issue is specific to passthrough copy incremental, that’s shipping with 0.11.0: #977

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

3 participants