소스 검색

fix: asset warnigns on windows (#3220)

Miles Murgaw 7 달 전
부모
커밋
6da7226370
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      packages/manganis/manganis-macro/src/asset.rs

+ 1 - 1
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 }