Tinypng Plugin for Webpack [Full Featured]
This is a fix for making this plugin https://github.com/JoJoChilly/tinypng-plugin-webpack-full-featured run after you build with webpack, so you can copy the images to a new folder and only then run the tinyPng operation. Also added an optional variable for excluding pictures - imagesToIgnore. imagesToIgnore - receives a local path to a json file with the names of the pictures you don't want tinyPng'd.
Example:
FileName "tinyPngIgnore" in the root dir: { "imagesToIgnore": [ "bg", "Symbols" ] }
new var in the plugin: imagesToIgnore: path.resolve(__dirname, "tinyPngIgnore.json")
All credit and Copyright (c) Joan Qin