Skip to content

Commit

Permalink
fix: re-enabled minification
Browse files Browse the repository at this point in the history
I thought at one stage it might be causing the hydration bugs, but it wasn't.
  • Loading branch information
arctic-hen7 committed Jan 27, 2023
1 parent 6d38da6 commit 9512df0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/perseus/src/utils/minify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ use minify_html_onepass::{with_friendly_error, Cfg};
/// If the second argument is set to `false`, CSS and JS will not be minified,
/// and the performance will be improved.
pub(crate) fn minify(code: &str, minify_extras: bool) -> Result<String, ServerError> {
// TODO Minification seems to be currently breaking hydration? (Not certain of
// this though...)
return Ok(code.to_string());
// In case the user is using invalid HTML (very tricky error to track down), we
// let them disable this feature
if cfg!(feature = "minify") {
Expand Down

0 comments on commit 9512df0

Please sign in to comment.