UNPKG

responsive-json-webpack-plugin

Version:

Resize images and combine responsive image info with static text in json.

43 lines (42 loc) 868 B
[ { "files": [ { "src": "sample-1.png", "size": 16 } ] }, { "files": [ { "src": "sample-2.png", "size": 16, "dest": "herrso" } ], "alternates": [ { "size": 36, "dest": "[name]-huge" }, { "size": 8, "dest": "[name]-smaller" } ] }, { "files": ["sample-2.png", "sample-3.png"], "alternates": [ { "size": 8, "dest": "[name]-smaller" }, { "size": 24, "dest": "[name]-larger" } ] } ]