@nx/web:static-config
Add a new serve target to serve a build apps static files. This allows for faster serving of the static build files by reusing the case. Helpful when reserving the app over and over again like in e2e tests.
Webinar April 17: Making the Argument for MonoreposWebinar April 17: Making the Argument for MonoreposRegister now!
Add a new serve target to serve a build apps static files. This allows for faster serving of the static build files by reusing the case. Helpful when reserving the app over and over again like in e2e tests.
1nx generate static-config ...
2
By default, Nx will search for static-config
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/web:static-config ...
2
Show what will be generated without writing to disk:
1nx g static-config ... --dry-run
2
Name of the build target to serve
Path to the directory of the built files. This is only needed if buildTarget doesn't specify an outputPath executor option.
true
Whether to set the 'spa' flag on the generated target.
serve-static
Name of the serve target to add. Defaults to 'serve-static'.