webpack-tree-shaking Thie repo contains webpack tree shaking example with UnglifyJS. It also has caching.