build_sass | R Documentation |
Builds the app/styles/main.scss
file into app/static/css/app.min.css
.
build_sass(watch = FALSE)
watch |
Keep the process running and rebuilding Sass whenever source files change.
Only supported for |
The build method can be configured using the sass
option in rhino.yml
:
node
: Use Dart Sass
(requires Node.js to be available on the system).
r
: Use the {sass}
R package.
It is recommended to use Dart Sass which is the primary,
actively developed implementation of Sass.
On systems without Node.js you can use the {sass}
R package as a fallback.
It is not advised however, as it uses the deprecated
LibSass implementation.
None. This function is called for side effects.
if (interactive()) {
# Build the `app/styles/main.scss` file into `app/static/css/app.min.css`.
build_sass()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.