mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 10:05:41 +00:00
build sass using dart-sass, bypassing css extractor
This commit is contained in:
@@ -63,14 +63,14 @@ lazy_static! {
|
||||
pub static ref JS: &'static str =
|
||||
FILES.get("./static/cache/bundle/bundle.js").unwrap();
|
||||
pub static ref CSS: &'static str =
|
||||
FILES.get("./static/cache/bundle/bundle.css").unwrap();
|
||||
FILES.get("./static/cache/bundle/css/main.css").unwrap();
|
||||
pub static ref MOBILE_CSS: &'static str =
|
||||
FILES.get("./static/cache/bundle/mobile.css").unwrap();
|
||||
FILES.get("./static/cache/bundle/css/mobile.css").unwrap();
|
||||
|
||||
pub static ref VERIFICATIN_WIDGET_JS: &'static str =
|
||||
FILES.get("./static/cache/bundle/verificationWidget.js").unwrap();
|
||||
pub static ref VERIFICATIN_WIDGET_CSS: &'static str =
|
||||
FILES.get("./static/cache/bundle/verificationWidget.css").unwrap();
|
||||
FILES.get("./static/cache/bundle/css/widget.css").unwrap();
|
||||
|
||||
/// points to source files matching build commit
|
||||
pub static ref SOURCE_FILES_OF_INSTANCE: String = {
|
||||
|
||||
@@ -39,8 +39,8 @@ mod tests {
|
||||
#[test]
|
||||
fn filemap_works() {
|
||||
let files = super::FileMap::new();
|
||||
let css = files.get("./static/cache/bundle/bundle.css").unwrap();
|
||||
let css = files.get("./static/cache/bundle/css/main.css").unwrap();
|
||||
println!("{}", css);
|
||||
assert!(css.contains("/assets/bundle/bundle"));
|
||||
assert!(css.contains("/assets/bundle/css"));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user