adobe / aem-spa-project-archetype

Maven Archetype for creating new AEM SPA projects
Apache License 2.0
61 stars 32 forks source link

Create Angular production build with publish profiles #120

Closed samuelmeuli closed 4 years ago

samuelmeuli commented 4 years ago
Q                       A
Fixed Issues?
Patch: Bug Fix? No
Minor: New Feature? Yes
Major: Breaking Change? No
Tests Added + Pass? No
Documentation Provided Yes (code comments)
Any Dependency Changes? No
License Apache License, Version 2.0

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).