minify-html-onepass 0.18.1

Even faster version of minify-html
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::err::ProcessingResult;
use crate::proc::MatchAction::*;
use crate::proc::MatchMode::*;
use crate::proc::Processor;

#[inline(always)]
pub fn process_bang(proc: &mut Processor) -> ProcessingResult<()> {
  proc.m(IsSeq(b"<!"), Keep).expect();
  proc.m(ThroughChar(b'>'), Keep).require("bang close")?;
  Ok(())
}