server.js
, which is actually a middleware that can be inserted in a custom web server.npx frontity serve
npx frontity build
to generate the build
folder.npx frontity serve
to launch a web server that makes use of the server.js
generated in the previous step.server.js
as a middlewarenpx frontity build
you get a build
folder in the root of your project.build
folder there is a .html
file generated at analyze/module-development.html
. This file is a visual report in the form of a tree generated by Webpack Bundle Analyzer.