hexojs / hexo-asset-pipeline

A hexo plugin to minify/optimize HTML, CSS, JS and images. Supports revisioning of assets.
29 stars 16 forks source link

Excluding Images #52

Closed TheBeachMaster closed 4 years ago

TheBeachMaster commented 5 years ago

I am having a slight issue excluding images.

...
  imagemin:
    enable: true
   exclude: ['/path/to/image.png', '/path/to/another/image.png']
....

Does not work, images still get minified.

Use case, setting up PWA manifest.json file icons entry.

Example site

B3rn475 commented 4 years ago

Hi TheBeachMaster are you using that exact syntax? That is not valid YAML What you want is probably:

imagemin: 
  enable: true
  exclude: 
    - /path/to/image.png
    - /path/to/another/image.png
TheBeachMaster commented 4 years ago

Thanks @B3rn475

Closing