Closed samuelmeuli closed 4 years ago
Previously, it was necessary to pass a -Dbuild.environment=":production" flag to the Maven build command to get Angular to create a production build (see https://github.com/adobe/aem-spa-project-archetype/blob/65b3ff967b7e0c555ad56c32506716529b719526/src/main/resources/archetype-resources/README.md). With this PR, this should no longer be necessary: The build.environment property is automatically set to :production when one of the publish profiles is used (autoInstallPackagePublish or autoInstallSinglePackagePublish).
-Dbuild.environment=":production"
build.environment
:production
autoInstallPackagePublish
autoInstallSinglePackagePublish
Previously, it was necessary to pass a
-Dbuild.environment=":production"
flag to the Maven build command to get Angular to create a production build (see https://github.com/adobe/aem-spa-project-archetype/blob/65b3ff967b7e0c555ad56c32506716529b719526/src/main/resources/archetype-resources/README.md). With this PR, this should no longer be necessary: Thebuild.environment
property is automatically set to:production
when one of the publish profiles is used (autoInstallPackagePublish
orautoInstallSinglePackagePublish
).