im trying to develop a theme.
i dont want to use any JS-Dependencies.
I want to use SASS.
Its all working really nice, except the sass auto-reload doesnt work.
i would not mind if i have to reload the page after a change, but i have to restart the “hugo serve” cli.
tried all the different flags in the cli like --disableFastRender and so on.
am i missing something?
Show the full command you are running for hugo server, and the output. I know you mentioned you tried the —disableFastRender flag. Also, put a -v at the end so we can see more output.
WARN 2018/10/15 09:59:03 No translation bundle found for default language "en"
WARN 2018/10/15 09:59:03 Translation func for language en not found, use default.
WARN 2018/10/15 09:59:03 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.
INFO 2018/10/15 09:59:03 Using config file: /Users/paul/git/arbeit/hugo-practical-test/config.toml
Building sites … INFO 2018/10/15 09:59:03 syncing static files to /
INFO 2018/10/15 09:59:03 found taxonomies: map[string]string{"category":"categories", "tag":"tags"}
| EN
+------------------+----+
Pages | 7
Paginator pages | 0
Non-page files | 0
Static files | 2
Processed images | 0
Aliases | 0
Sitemaps | 1
Cleaned | 0
Total in 9 ms
Watching for changes in /Users/paul/git/arbeit/hugo-practical-test/{content,data,layouts,static,themes}
Watching for config changes in /Users/paul/git/arbeit/hugo-practical-test/config.toml
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop
Is your i18n folder missing (but that’s probably not the reason)? I have more or less the same SASS setup like yours and it’s working fine (latest Hugo release). Don’t see the reason just now. I have the i18n folder in every project.
hugo server -wDEF --disableFastRender --navigateToChanged
The -wDEF tells Hugo to display Draft, Expired and Future posts. The -w stands for watch and is probably not necessary.
CSS is compiled with every change. And that works even that my assets directory follows the 7-1 Pattern so I have a lot of SCSS folders. Something must be wrong with your setup.