ProjectMirador / research-and-demos

Proofs of concept for Mirador 3
10 stars 8 forks source link

adds dev server and hot dev client #88

Closed christopher-johnson closed 4 years ago

christopher-johnson commented 5 years ago

this adds a complete dev build environment that includes:

the server runs on port 3000 by default, but will find an available port if 3000 is in use. The index.html is injected with the chunk js and css generated from the dev build. This index (located in public) is distinct from the indices referenced in e2e tests which reference production artifacts in dist generated with npm run build . The webpack.config.dev.js, includes optional yarn plug-n-play support, but postcss and typescript support have been removed. Further minimization / optimization of the configs are possible, if necessary.

Note that the production index.jshas been renamed index-dist.js. The dev index.js does not require the default export since the index.html is referencing chunk artifacts and not the distribution/production module.