Webpack
This example shows a Preact app built with @srcset/loader and @srcset/preact.
The generation rules live in the loader options in webpack.config.js, and src/App.jsx overrides them per import the same way the other examples do. Edit a rule and the variants listed under every image change with it.