Skip to content

Commit

Permalink
Follow up to #664. Respect bslib.precompiled option when considering …
Browse files Browse the repository at this point in the history
…whether compile Sass for components
  • Loading branch information
cpsievert committed Jul 13, 2023
1 parent 890f847 commit 0f18724
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/utils-deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ component_dependency_css <- function(name) {

# Run-time (Sass) component styles
component_dependency_sass <- function(theme, name) {
if (!is_bs_theme(theme) || identical(theme, bs_theme())) {
precompiled <- isTRUE(get_precompiled_option())
default_theme <- !is_bs_theme(theme) || identical(theme, bs_theme())
if (precompiled && default_theme) {
component_dependency_css(name)
} else {
component_dependency_sass_(theme, name)
Expand Down

0 comments on commit 0f18724

Please sign in to comment.