@@ -66,6 +66,7 @@ OPTIONS:
66
66
67
67
struct Args {
68
68
keep_style_tags : bool ,
69
+ keep_link_tags : bool ,
69
70
base_url : Option < String > ,
70
71
extra_css : Option < String > ,
71
72
output_filename_prefix : Option < OsString > ,
@@ -100,6 +101,7 @@ OPTIONS:
100
101
} else {
101
102
let args = Args {
102
103
keep_style_tags : args. contains ( "--keep-style-tags" ) ,
104
+ keep_link_tags : args. contains ( "--keep-link-tags" ) ,
103
105
base_url : args. opt_value_from_str ( "--base-url" ) ?,
104
106
extra_css : args. opt_value_from_str ( "--extra-css" ) ?,
105
107
output_filename_prefix : args. opt_value_from_str ( "--output-filename-prefix" ) ?,
@@ -115,10 +117,11 @@ OPTIONS:
115
117
} ;
116
118
let options = InlineOptions {
117
119
keep_style_tags : args. keep_style_tags ,
120
+ keep_link_tags : args. keep_link_tags ,
118
121
base_url,
119
122
load_remote_stylesheets : args. load_remote_stylesheets ,
120
123
extra_css : args. extra_css . as_deref ( ) . map ( Cow :: Borrowed ) ,
121
- .. Default :: default ( )
124
+ preallocate_node_capacity : 8 ,
122
125
} ;
123
126
let inliner = CSSInliner :: new ( options) ;
124
127
if args. files . is_empty ( ) {
0 commit comments