There are tools that make this easy: https://github.com/Polymer/prpl-server …https://twitter.com/AdamRackis/status/1101237728212148224 …
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
If you conditionally build, it conditionally serves. And there *is* an end-to-end solution that is Polymer-based (which is why I didn't recommend it).
The PWA Starter Kit's tooling is end-to-end in this way; makes conditional compilation a trivial option, plugs right into node-prpl-server serving of the right thing to the right users.
This sort of structure is hard to retrofit into tools that weren't designed for it: https://pwa-starter-kit.polymer-project.org/building-and-deploying … But you totally can do this with your own webpack config, node-prpl-sever, and a ton of elbow grease
Sorry - I’m not following. Making separate webpack builds is easy. Conditionally *loading* one or the other *at runtime* based on browser’s features is (presently) hard bc we need access to webpack bundle hash/info for all builds. Does this solution somehow help there?
This is generally handled with module/nomodule right? It’s implemented in Vue like so, which I believe directly taps into HtmlWebpackPlugin to add the necessary script/link/etc. tags https://github.com/vuejs/vue-cli/blob/38efc032e5c0d5ab8dd74602c1fb100fef62d766/packages/%40vue/cli-service/lib/webpack/ModernModePlugin.js … We’re looking to build something similar into Gatsby soon.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.