File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ CSS_BUILD_PATH = Rails.root.join("app/assets/builds")
4
4
5
5
def dartsass_build_mapping
6
6
Rails . application . config . dartsass . builds . map { |input , output |
7
- "#{ CSS_LOAD_PATH . join ( input ) } :#{ CSS_BUILD_PATH . join ( output ) } "
7
+ "#{ Shellwords . escape ( CSS_LOAD_PATH . join ( input ) ) } :#{ Shellwords . escape ( CSS_BUILD_PATH . join ( output ) ) } "
8
8
} . join ( " " )
9
9
end
10
10
@@ -13,7 +13,7 @@ def dartsass_build_options
13
13
end
14
14
15
15
def dartsass_load_paths
16
- [ CSS_LOAD_PATH ] . concat ( Rails . application . config . assets . paths ) . map { |path | "--load-path #{ path } " } . join ( " " )
16
+ [ CSS_LOAD_PATH ] . concat ( Rails . application . config . assets . paths ) . map { |path | "--load-path #{ Shellwords . escape ( path ) } " } . join ( " " )
17
17
end
18
18
19
19
def dartsass_compile_command
You can’t perform that action at this time.
0 commit comments