Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
turf 🌱
turf allows you to build SCSS to CSS during compile time and inject those styles into your binary.
Features
turf will:
- 🌿 transform your SCSS files into CSS with grass, right at compilation time.
- 🪴 simplify your workflow with stylist, generating unique and dynamic class names for your CSS during compilation.
- 🎨 inject the generated CSS into your binary, guaranteeing quick access to your styles whenever you need them.
Usage
For a complete runnable example project, you can check out the leptos-example.
Configuration
The configuration for turf can be specified in the Cargo.toml file using the [package.metadata.turf] key. This allows you to conveniently manage your SCSS compilation settings within your project's manifest.
The following configuration options are available:
load_paths(array of directories): Specifies the directories where SCSS files should be searched during compilation. This option allows you to include SCSS files from different locations, such as external libraries or custom directories.output_style(string): Defines the format of the generated CSS output. This option supports two values:expandedandcompressed. Use "expanded" if you prefer a more readable and indented CSS output, or "compressed" for a minified and compact version.
Example configuration:
[]
= ["path/to/scss/files", "another/path"]
= "compressed"
Contributions
Contributions to turf are always welcome! Whether you have ideas for new features or improvements, don't hesitate to open an issue or submit a pull request. Let's collaborate and make turf even better together. 🤝
License
turf is licensed under the MIT license. For more details, please refer to the LICENSE file. 📄