Skip to content

Commit

Permalink
1.2.0 - Rimozione imagemin
Browse files Browse the repository at this point in the history
  • Loading branch information
massimo-cassandro committed Feb 29, 2024
1 parent 12113e8 commit f5ac381
Show file tree
Hide file tree
Showing 9 changed files with 1,181 additions and 10,951 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@
2023-07-12T08:48:16.358Z | 1.0.11 | create-Favicons: parametro per la personalizzazione della qualità dei file PNG
2023-09-17T15:14:01.301Z | 1.0.12 | favicon: new `snippet_target_file` parameter
2024-02-28T16:57:28.850Z | 1.1.0 | Prima release as standalone package (from dev_utilities)
2024-02-29T16:00:00.800Z | 1.2.0 | Rimozione imagemin
8 changes: 7 additions & 1 deletion demo/create-favicons-cfg.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ const params = {

// immagine sorgent. SVG o PNG 512x512
src_img: 'favicon-src.svg',
// src_img: 'favicon-src2.svg',

// sorgente opzionale per immagine piccole (32px)
small_src_img: 'favicon-small-src.svg',
Expand Down Expand Up @@ -52,9 +53,14 @@ const params = {

// se true aggiunge allo snippet una query string per ovviare ad eventuali
// problemi di caching del browser
add_cache_buster: true
add_cache_buster: true,

//****************************************************************************

// SHARP PNG PARAMETERS
// parametri per i file PNG
// vedi https://sharp.pixelplumbing.com/api-output#png
png_parameters: {compressionLevel: 5, quality: 60, palette: true}
};

export default params;
26 changes: 22 additions & 4 deletions demo/favicon-src.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions demo/favicon-src2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f5ac381

Please sign in to comment.