Skip to content

Commit ff28422

Browse files
committed
chore: Add missing keep_link_tags to CLI
1 parent ea099db commit ff28422

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

css-inline/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ OPTIONS:
6666

6767
struct Args {
6868
keep_style_tags: bool,
69+
keep_link_tags: bool,
6970
base_url: Option<String>,
7071
extra_css: Option<String>,
7172
output_filename_prefix: Option<OsString>,
@@ -100,6 +101,7 @@ OPTIONS:
100101
} else {
101102
let args = Args {
102103
keep_style_tags: args.contains("--keep-style-tags"),
104+
keep_link_tags: args.contains("--keep-link-tags"),
103105
base_url: args.opt_value_from_str("--base-url")?,
104106
extra_css: args.opt_value_from_str("--extra-css")?,
105107
output_filename_prefix: args.opt_value_from_str("--output-filename-prefix")?,
@@ -115,10 +117,11 @@ OPTIONS:
115117
};
116118
let options = InlineOptions {
117119
keep_style_tags: args.keep_style_tags,
120+
keep_link_tags: args.keep_link_tags,
118121
base_url,
119122
load_remote_stylesheets: args.load_remote_stylesheets,
120123
extra_css: args.extra_css.as_deref().map(Cow::Borrowed),
121-
..Default::default()
124+
preallocate_node_capacity: 8,
122125
};
123126
let inliner = CSSInliner::new(options);
124127
if args.files.is_empty() {

0 commit comments

Comments
 (0)