Function rsass::compile_scss_file
source · Expand description
Parse a file of scss data and write css in the given style.
Any @import
directives will be handled relative to the directory
part of file
.
Example
use rsass::{OutputStyle, compile_scss_file};
assert_eq!(
compile_scss_file(
"tests/basic/14_imports/a.scss".as_ref(),
OutputStyle::Compressed
).unwrap(),
b"div span{moo:goo}\n"
)