Comments (10)
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.
Also having this issue.
from cargo-leptos.
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.
from cargo-leptos.
@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.
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.
@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.
@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.
from cargo-leptos.
Resolved in #267
from cargo-leptos.
Related Issues (20)
- `hash-files` breaks tailwind hot reloading HOT 3
- Add --target-dir Argument for Compatibility with Cargo Commands
- How to set the frontend library compile into wasm32 HOT 6
- WASM file in target/front/wasm32-unknown-unknown/debug not affected by output-name in config
- Autogenerated 'tailwind.config.js' isn't compatible with workspace paths HOT 1
- LEPTOS_HASH_FILES=true doesn't work in release mode HOT 4
- Consider compile target when placing hash.txt HOT 1
- Cargo leptos builds 'fail' when using config.toml HOT 4
- Install / compilation fails on Windows 10 | winapi error HOT 2
- Install binary error HOT 1
- 'cargo leptos serve' does not play well with RUSTFLAGS="-Awarnings"
- Setting environment variables at a project level. HOT 3
- subscribe to shutdown
- Change `new` and add `init`? HOT 1
- leptos watch does not like pingora HOT 2
- Cross compile error (Debian -> Windows)
- `watch` does not load style assets if the initial build fails
- Doesn't watch if the path dependency is the workspace root HOT 2
- Hot reloading and local HTTPS HOT 2
- TailwindCSS doesn't see dash separated classes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cargo-leptos.