From 6da72263705456dd434cf8e3cd93f9bad95d6cd4 Mon Sep 17 00:00:00 2001 From: Miles Murgaw Date: Fri, 15 Nov 2024 13:52:05 -0500 Subject: [PATCH] fix: asset warnigns on windows (#3220) --- packages/manganis/manganis-macro/src/asset.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/manganis/manganis-macro/src/asset.rs b/packages/manganis/manganis-macro/src/asset.rs index f952281bc..7eebd799b 100644 --- a/packages/manganis/manganis-macro/src/asset.rs +++ b/packages/manganis/manganis-macro/src/asset.rs @@ -85,7 +85,7 @@ impl ToTokens for AssetParser { let option_source = &self.options; // generate the asset::new method to deprecate the `./assets/blah.css` syntax - let method = if asset.input.is_relative() { + let method = if !asset.input.starts_with("/") { quote::quote! { new_relative } } else { quote::quote! { new }