Skip to content

Commit 73d967a

Browse files
committed
fix: remove the data-target-path attribute from the output
1 parent 07cc1ed commit 73d967a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/pipelines/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ impl<'a> AttrWriter<'a> {
367367
ATTR_SRC,
368368
ATTR_TYPE,
369369
ATTR_MINIFY,
370+
ATTR_TARGET_PATH,
370371
];
371372
/// Whereas on link elements, the MIME type for css is A-OK. You can even specify a custom
372373
/// MIME type.
@@ -377,10 +378,12 @@ impl<'a> AttrWriter<'a> {
377378
ATTR_INLINE,
378379
ATTR_SRC,
379380
ATTR_MINIFY,
381+
ATTR_TARGET_PATH,
380382
];
381383

382384
/// Attributes to ignore for <script> tags
383-
pub(self) const EXCLUDE_SCRIPT: &'static [&'static str] = &[ATTR_SRC, ATTR_MINIFY];
385+
pub(self) const EXCLUDE_SCRIPT: &'static [&'static str] =
386+
&[ATTR_SRC, ATTR_MINIFY, ATTR_TARGET_PATH];
384387

385388
pub(self) fn new(attrs: &'a Attrs, exclude: &'a [&'a str]) -> Self {
386389
Self { attrs, exclude }

0 commit comments

Comments
 (0)