Code Monkey home page Code Monkey logo

Comments (10)

NiklasEi avatar NiklasEi commented on July 29, 2024

This currently fails my build, because I have multiple scss modules that get combined by basro/stylance-rs and are not all valid without the other modules due to CSS variables.

from cargo-leptos.

pati08 avatar pati08 commented on July 29, 2024

Also having this issue.

from cargo-leptos.

pati08 avatar pati08 commented on July 29, 2024

Dug into some source code. Why is there tailwind stuff in the compile_sass function?

// ...
pub async fn compile_sass(style_file: &SourcedSiteFile, optimise: bool) -> Result<Outcome<String>> {
    let mut args = vec![style_file.source.as_str()];
    optimise.then(|| args.push("--no-source-map"));

    let exe = Exe::Sass.get().await.dot()?;

    let mut cmd = Command::new(exe);
    cmd.args(&args);

    log::trace!(
        "Style running {}",
        GRAY.paint(format!("sass {}", args.join(" ")))
    );

    match wait_piped_interruptible("Tailwind", cmd, Interrupt::subscribe_any()).await? {
        CommandResult::Success(output) => Ok(Outcome::Success(output.stdout())),
        CommandResult::Interrupted => Ok(Outcome::Stopped),
        CommandResult::Failure(output) => {
            log::warn!("Tailwind failed with:");
            println!("{}", output.stderr());
            Ok(Outcome::Failed)
        }
    }
}

from cargo-leptos.

benwis avatar benwis commented on July 29, 2024

from cargo-leptos.

pati08 avatar pati08 commented on July 29, 2024

@benwis Sounds likely to me. If I find the root of this issue and get around to opening a PR, I'll include a fix for that. It doesn't seem urgent, just problematic for debugging. @NiklasEi did you think Tailwind was failing because it said "Tailwind" (understandable) or did you confirm that? Might not be tailwind.

from cargo-leptos.

pati08 avatar pati08 commented on July 29, 2024

Also, I'll open a separate issue for whatever is going on right now with mine, since it seems not to be quite right for this issue.

from cargo-leptos.

NiklasEi avatar NiklasEi commented on July 29, 2024

@benwis Sounds likely to me. If I find the root of this issue and get around to opening a PR, I'll include a fix for that. It doesn't seem urgent, just problematic for debugging. @NiklasEi did you think Tailwind was failing because it said "Tailwind" (understandable) or did you confirm that? Might not be tailwind.

I did not confirm it by looking into the code. It might not have been Tailwind in the end then, just Sass.

from cargo-leptos.

benwis avatar benwis commented on July 29, 2024

@nvim-ftw Would you like to open a quick PR to patch it to say Sass and not Tailwind, so more people are not confused?

from cargo-leptos.

pati08 avatar pati08 commented on July 29, 2024

from cargo-leptos.

NiklasEi avatar NiklasEi commented on July 29, 2024

Resolved in #267

from cargo-leptos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.