How to set watch ignore *.extension? #2032
Replies: 7 comments 2 replies
-
I believe that dynamic ignores pattern only works in v1 (currently in beta). I think there might be a few ways to solve this:
I’d probably recommend option 1 or 2. |
Beta Was this translation helpful? Give feedback.
-
I am using v1, how would I do it in v1?
(I tried the other ways and no joy)
…On Sun, Oct 17, 2021 at 1:12 PM Peter deHaan ***@***.***> wrote:
I believe that dynamic ignores pattern only works in v1 (currently in
beta).
I think there might be a few ways to solve this:
- https://www.11ty.dev/docs/config/#template-formats
- Explicitly set an input and output folder in your .eleventy.js
config file, and 11ty won’t try processing your generated output files.
- possibly tweak the .eleventyignore file to ignore *.html globs
I’d probably recommend option 1 or 2.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2032 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASK4M5EFOK2J67LM4BJ2DA3UHMGX7ANCNFSM5GFBU7NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Eleventy should ignore the output folder by default, but if you are using the same input/output folder, this seems to work for me locally (although not my preferred solution): npx eleventy --input=. --output=. --formats=pug Or, if you want to specify it in your .eleventy.js config file (per https://www.11ty.dev/docs/config/#template-formats): module.exports = (eleventyConfig) => {
eleventyConfig.setTemplateFormats("pug,md");
return {
dir: {
input: ".",
output: ".",
},
// templateFormats: ["pug", "md"]
};
}; |
Beta Was this translation helpful? Give feedback.
-
Thx, The same output/input folder I already set (as ln -s so it copies all files, else it misses some otherwise). https://gitlab.com/cekvenich2/ubay That is the settings there. The issue is that after it builds pug: it builds again html in an endless loop when I watch. Build works fine. |
Beta Was this translation helpful? Give feedback.
-
I just used v1 w/ passthroughall
(asiude I wish instead of while list I could just black list files, like
pass all except *.pug ).
…On Sun, Oct 17, 2021 at 3:07 PM Peter deHaan ***@***.***> wrote:
Eleventy should ignore the output folder by default, but if you are using
the same input/output folder, this seems to work for me locally (although
not my preferred solution):
npx eleventy --input=. --output=. --formats=pug
Or, if you want to specify it in your .eleventy.js config file (per
https://www.11ty.dev/docs/config/#template-formats):
module.exports = (eleventyConfig) => {
eleventyConfig.setTemplateFormats("pug,md");
return {
dir: {
input: ".",
output: ".",
},
// templateFormats: ["pug", "md"]
};};
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2032 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASK4M5EWAW4JT6NVDS3B25DUHMUGVANCNFSM5GFBU7NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Odd, I cloned and installed Eleventy v1 beta and it built fine for me on
macOS Big Sur. Wonder if it’s related to the symlinked folder
…On Sun, Oct 17, 2021 at 3:26 PM cekvenich2 ***@***.***> wrote:
I just used v1 w/ passthroughall
(asiude I wish instead of while list I could just black list files, like
pass all except *.pug ).
On Sun, Oct 17, 2021 at 3:07 PM Peter deHaan ***@***.***>
wrote:
> Eleventy should ignore the output folder by default, but if you are using
> the same input/output folder, this seems to work for me locally (although
> not my preferred solution):
>
> npx eleventy --input=. --output=. --formats=pug
>
> Or, if you want to specify it in your .eleventy.js config file (per
> https://www.11ty.dev/docs/config/#template-formats):
>
> module.exports = (eleventyConfig) => {
> eleventyConfig.setTemplateFormats("pug,md");
>
> return {
> dir: {
> input: ".",
> output: ".",
>
> },
> // templateFormats: ["pug", "md"]
> };};
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <
#2032 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ASK4M5EWAW4JT6NVDS3B25DUHMUGVANCNFSM5GFBU7NQ
>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> or Android
> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2032 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEIGR3PJADUYABXVGBHZO3UHNEQRANCNFSM5GFBU7NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
thanks for the help!!!
On Sun, Oct 17, 2021 at 5:34 PM Peter deHaan ***@***.***>
wrote:
… Odd, I cloned and installed Eleventy v1 beta and it built fine for me on
macOS Big Sur. Wonder if it’s related to the symlinked folder
On Sun, Oct 17, 2021 at 3:26 PM cekvenich2 ***@***.***> wrote:
> I just used v1 w/ passthroughall
>
> (asiude I wish instead of while list I could just black list files, like
> pass all except *.pug ).
>
> On Sun, Oct 17, 2021 at 3:07 PM Peter deHaan ***@***.***>
> wrote:
>
> > Eleventy should ignore the output folder by default, but if you are
using
> > the same input/output folder, this seems to work for me locally
(although
> > not my preferred solution):
> >
> > npx eleventy --input=. --output=. --formats=pug
> >
> > Or, if you want to specify it in your .eleventy.js config file (per
> > https://www.11ty.dev/docs/config/#template-formats):
> >
> > module.exports = (eleventyConfig) => {
> > eleventyConfig.setTemplateFormats("pug,md");
> >
> > return {
> > dir: {
> > input: ".",
> > output: ".",
> >
> > },
> > // templateFormats: ["pug", "md"]
> > };};
> >
> > —
> > You are receiving this because you authored the thread.
> > Reply to this email directly, view it on GitHub
> > <
>
#2032 (comment)
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/ASK4M5EWAW4JT6NVDS3B25DUHMUGVANCNFSM5GFBU7NQ
> >
> > .
> > Triage notifications on the go with GitHub Mobile for iOS
> > <
>
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
> >
> > or Android
> > <
>
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
> >.
> >
> >
>
> —
> You are receiving this because you commented.
>
>
> Reply to this email directly, view it on GitHub
> <
#2032 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAEIGR3PJADUYABXVGBHZO3UHNEQRANCNFSM5GFBU7NQ
>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
>
> or Android
> <
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub
>.
>
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2032 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASK4M5FBUWJQ5YPCHH4EZGTUHNFQTANCNFSM5GFBU7NQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
Hi all. I have build and source same, and when it builds(pug) the html files trigger a build - an endless loop.
How do I set watcher to ignore .html files?
This does not work:
eleventyConfig.ignores.add("*.html");
tia. Vic
Beta Was this translation helpful? Give feedback.
All reactions