en en en en en it en en en en en en zh en de en en en en en en ca hbs_lat en en en en tr en mk en zh en en en en en en en en en vi en en pt mk jv en en en en hbs_lat ceb en la la en hbs_lat hbs_lat hu en lt en en el en en en en en bn en en en en en bn en en en en bn en en en en bn en en en en en en hbs_lat en ca hbs_lat en vi el en en en en
Builds the project. Create bundles with "es5", "module" or "both". Default target is "both". Related environment variable: FRONTITY_BUILD_TARGET​
This flag correspond to webpack’s mode parameter so it will run webpack in the development mode as described there.
For example, when running react in development mode (when process.env.NODE_ENV is set to development and NOT to production) you get full error messages and warnings from React but at the cost of slower performance.
npx frontity build --development
So, it’s basically the same as just running frontity dev except that it will only build the project once and will not run the development server.
The target option allows to decide what features will be transpiled with babel.
With --target es5, the support of the following browsers as the minimum is:
"not android <= 4.4.4",
So, Frontity don't transpile any features that those browsers already support. In particular Frontity aim to support only the browsers that ship with the built-in Proxy object . This list comes from here and it is used by the @babel/preset-env to determine how to transpile the files.
With --target module, Frontity tell babel to only support the browsers that support ESModules​
By default Frontity will look for static assets in the path  /static
With the --public-path option you can change the path from where you are serving the statics assets (i.e. js chunk files, fonts, images, etc.)
The public path is included in the generated files by webpack and cannot be changed after that.
In case some people need to change it (because of constrains in their site architecture) they would need an option to do so just before generating the Frontity bundle with npx frontity build.
This option is also available for dev command
npx frontity build --public-path="/other/folder"
Create bundles with es5, module or both. Default target is both.
If detected, and no --target option is defined for build Frontity command, this environment variable will be applied.
Frontity by default builds the server in "production mode". Setting this variable makes it run in "development mode" (with disabled optimizations, etc.)
Set the public path for static assets. Default path is /static/.
If detected, and no --public-path flag is defined for build Frontity command, this environment variable value will be applied.