]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #104404 - GuillaumeGomez:fix-missing-minification, r=notriddle
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 15 Nov 2022 00:40:45 +0000 (01:40 +0100)
committerGitHub <noreply@github.com>
Tue, 15 Nov 2022 00:40:45 +0000 (01:40 +0100)
commitf0978eec014ddc076c00e1bb7ef50ca15dd9f6f7
tree57d28c03045f3b40af90911d85532eab522ae003
parentda2beab3f67af6fd0e1ff11bd1007226800c08da
parente6baae576c9b474d1946a1d0f98692c7a3e62549
Rollup merge of #104404 - GuillaumeGomez:fix-missing-minification, r=notriddle

Fix missing minification for static files

It's a fix for https://github.com/rust-lang/rust/pull/101702.

The problem was that `Path::ends_with` doesn't do what we thought it does: it checks if the entire item is the last path part, no just if the "path string" ends with the given argument. So instead, I just used the `extension()` method to get the information we want.

cc `@jsha`
r? `@notriddle`

PS: Is it worth it to add a CI test to ensure that the minification was performed on JS and CSS files or not?