Skip to content

Commit

Permalink
Remove dashicons workarounds (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
mreishus authored Jan 30, 2025
1 parent 04836e6 commit 9ef07db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
3 changes: 0 additions & 3 deletions routes/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ module.exports = async ( request, reply ) => {
if ( do_minify && path.match( /\.(dev|min)\./ ) ) {
do_minify = false;
}
if ( do_minify && path.endsWith( 'dashicons.css' ) ) {
do_minify = false;
}
log.minify = do_minify;
let use_cache = false;

Expand Down
4 changes: 0 additions & 4 deletions routes/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ module.exports = ( request, reply ) => {
if ( typeof request.query.minify === 'string' && request.query.minify === 'false' ) {
do_minify = false;
}
// Skip minification for dashicons.css - workaround for unicode escapes being changed to utf8
if ( url.endsWith( 'dashicons.css' ) ) {
do_minify = false;
}
log.minify = do_minify;

// Go get the original
Expand Down

0 comments on commit 9ef07db

Please sign in to comment.