Created
November 2, 2020 19:42
-
-
Save jmrobles/d55218fcf4ee71d4f3ff7d671bab1e52 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/node_modules/liferay-npm-build-support/lib/scripts/build/index.js | |
+++ b/node_modules/liferay-npm-build-support/lib/scripts/build/index.js | |
@@ -29,7 +29,13 @@ | |
function default_1() { | |
switch (project_1.default.probe.type) { | |
case probe_1.ProjectType.ANGULAR_CLI: | |
- buildWith('build', ['--prod=true']); | |
+ let conf = "--prod=true" | |
+ process.argv.forEach(op => { | |
+ if (op.startsWith("-c=")) { | |
+ conf = op | |
+ } | |
+ }); | |
+ buildWith('build', [conf]); | |
break; | |
case probe_1.ProjectType.CREATE_REACT_APP: | |
buildWith('build'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment