* Update compile_sass docs, this is just for sass files in site root * Improve file watch error, question whether the target exists
This commit is contained in:
parent
f7cd28c8d2
commit
c27f749a86
|
@ -82,7 +82,8 @@ taxonomies = []
|
||||||
#
|
#
|
||||||
languages = []
|
languages = []
|
||||||
|
|
||||||
# When set to "true", the Sass files in the `sass` directory are compiled.
|
# When set to "true", the Sass files in the `sass` directory in the site root are compiled.
|
||||||
|
# Sass files in theme directories are always compiled.
|
||||||
compile_sass = false
|
compile_sass = false
|
||||||
|
|
||||||
# A list of glob patterns specifying asset files to ignore when the content
|
# A list of glob patterns specifying asset files to ignore when the content
|
||||||
|
|
|
@ -255,7 +255,7 @@ pub fn serve(
|
||||||
if should_watch {
|
if should_watch {
|
||||||
watcher
|
watcher
|
||||||
.watch(root_dir.join(entry), RecursiveMode::Recursive)
|
.watch(root_dir.join(entry), RecursiveMode::Recursive)
|
||||||
.map_err(|e| ZolaError::chain(format!("Can't watch `{}` for changes in folder `{}`. Do you have correct permissions?", entry, root_dir.display()), e))?;
|
.map_err(|e| ZolaError::chain(format!("Can't watch `{}` for changes in folder `{}`. Does it exist, and do you have correct permissions?", entry, root_dir.display()), e))?;
|
||||||
watchers.push(entry.to_string());
|
watchers.push(entry.to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue