Skip to content

Instantly share code, notes, and snippets.

@jmrobles
Created November 2, 2020 19:42
Show Gist options
  • Save jmrobles/d55218fcf4ee71d4f3ff7d671bab1e52 to your computer and use it in GitHub Desktop.
Save jmrobles/d55218fcf4ee71d4f3ff7d671bab1e52 to your computer and use it in GitHub Desktop.
--- 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