Hops Template Minimal
This is a minimal example of how hops can be used without react.
Target audience
You might want to use this if you plan to use something other than React, for example when you want to build a Vue.js or Preact application - or if the choices made for hops-react or hops-redux do not match your requirements.
Overview
browser.js
This script (and all of its dependencies) will be bundled through webpack into the main-[hash].js
bundle located at hops-configs buildDir
.
It will then be requested by the browser because the server embeds it into the intial HTML response.
server.js
This script (and all of its dependencies) will be bundled through webpack into the server.js
bundle located at hops-configs cacheDir
.
It will then be used as a Express.js-style middleware for hops-express and the webpack-dev-server
contained in hops-build.