mirror of
https://github.com/nunocoracao/blowfish.git
synced 2026-01-30 16:31:52 +01:00
🧑💻 chore: add options for faster development
Add example:site_core and example:site_core:en_only for faster development We need development/hugo.toml since the segments still renders images. See object graph in https://gohugo.io/configuration/segments/
This commit is contained in:
@@ -69,3 +69,12 @@ googleAnalytics = "G-PEDMYR1V0K"
|
|||||||
name = 'fragmentrefs'
|
name = 'fragmentrefs'
|
||||||
type = 'fragments'
|
type = 'fragments'
|
||||||
weight = 10
|
weight = 10
|
||||||
|
|
||||||
|
# Render only specific parts of the site for faster development. Use: hugo --renderSegments docs_only
|
||||||
|
[segments]
|
||||||
|
[segments.site_core]
|
||||||
|
[[segments.site_core.includes]]
|
||||||
|
path = '{/,/docs,/docs/**,/samples,/samples/**}'
|
||||||
|
[segments.en_only]
|
||||||
|
[[segments.en_only.includes]]
|
||||||
|
lang = 'en'
|
||||||
|
|||||||
5
exampleSite/config/development/hugo.toml
Normal file
5
exampleSite/config/development/hugo.toml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Development configuration. Disable this by running: hugo server -e production
|
||||||
|
# https://gohugo.io/quick-reference/glossary/#environment
|
||||||
|
|
||||||
|
# Exclude folders containing large numbers of images
|
||||||
|
ignoreFiles = ['content/guides', 'content/users']
|
||||||
@@ -10,7 +10,9 @@
|
|||||||
"dev-windows": "set NODE_ENV=development&& npx @tailwindcss/cli -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit -w",
|
"dev-windows": "set NODE_ENV=development&& npx @tailwindcss/cli -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit -w",
|
||||||
"build-windows": "set NODE_ENV=production&& npx @tailwindcss/cli -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit",
|
"build-windows": "set NODE_ENV=production&& npx @tailwindcss/cli -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit",
|
||||||
"build-hugo": "hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/",
|
"build-hugo": "hugo --minify -s exampleSite --themesDir ../.. -d ../docs --baseURL https://nunocoracao.github.io/blowfish/",
|
||||||
"example": "hugo server -E -F --minify --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/ -p 1313",
|
"example": "hugo server -E -F --minify --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/ -p 1313 -e production",
|
||||||
|
"example:site_core": "hugo server -E -F --minify --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/ -p 1313 --renderSegments site_core",
|
||||||
|
"example:site_core:en_only": "hugo server -E -F --minify --source exampleSite --themesDir ../.. --buildDrafts -b http://localhost/ -p 1313 --renderSegments site_core,en_only",
|
||||||
"lighthouse": "lhci autorun"
|
"lighthouse": "lhci autorun"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
Reference in New Issue
Block a user