Skip to content

Commit 0f18724

Browse files
committed
Follow up to #664. Respect bslib.precompiled option when considering whether compile Sass for components
1 parent 890f847 commit 0f18724

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

R/utils-deps.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ component_dependency_css <- function(name) {
2424

2525
# Run-time (Sass) component styles
2626
component_dependency_sass <- function(theme, name) {
27-
if (!is_bs_theme(theme) || identical(theme, bs_theme())) {
27+
precompiled <- isTRUE(get_precompiled_option())
28+
default_theme <- !is_bs_theme(theme) || identical(theme, bs_theme())
29+
if (precompiled && default_theme) {
2830
component_dependency_css(name)
2931
} else {
3032
component_dependency_sass_(theme, name)

0 commit comments

Comments
 (0)