this adds a complete dev build environment that includes:
live reloading
hot module replacement
source maps
stack trace rendering with line numbers in the browser
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.
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 inpublic
) is distinct from the indices referenced in e2e tests which reference production artifacts indist
generated withnpm run build
. Thewebpack.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.js
has been renamedindex-dist.js
. The devindex.js
does not require the default export since the index.html is referencing chunk artifacts and not the distribution/production module.