Skip to content

Commit 189ad76

Browse files
docs: show a tip for the multiples rules (#582)
* docs: show a tip for the multiples rules Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> * 📄 Update LLMs.txt snapshot for PR review --------- Signed-off-by: David Dal Busco <david.dalbusco@outlook.com> Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 5f3b428 commit 189ad76

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

.llms-snapshots/llms-full.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,6 +2259,10 @@ import { defineConfig } from "@junobuild/config";export default defineConfig({
22592259

22602260
#### Use multiple rules
22612261

2262+
**Tip:**
2263+
2264+
This strategy works great for modern static sites.
2265+
22622266
In some cases, particularly when using `mode: replace`, you may want to apply different precompression strategies depending on the file type. For example, using replace for JavaScript and CSS files, but doing so for HTML can break social media previews.
22632267

22642268
To handle this, the precompress option also accepts an array of rules:
@@ -9477,6 +9481,10 @@ import { defineConfig } from "@junobuild/config";export default defineConfig({
94779481

94789482
#### Use multiple rules
94799483

9484+
**Tip:**
9485+
9486+
This strategy works great for modern static sites.
9487+
94809488
In some cases, particularly when using `mode: replace`, you may want to apply different precompression strategies depending on the file type. For example, using replace for JavaScript and CSS files, but doing so for HTML can break social media previews.
94819489

94829490
To handle this, the precompress option also accepts an array of rules:

docs/build/components/precompress.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ export default defineConfig({
103103

104104
#### Use multiple rules
105105

106+
:::tip
107+
108+
This strategy works great for modern static sites.
109+
110+
:::
111+
106112
In some cases, particularly when using `mode: replace`, you may want to apply different precompression strategies depending on the file type. For example, using replace for JavaScript and CSS files, but doing so for HTML can break social media previews.
107113

108114
To handle this, the precompress option also accepts an array of rules:

0 commit comments

Comments
 (0)