[
https://issues.apache.org/jira/browse/CB-14252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16568343#comment-16568343
]
ASF GitHub Bot commented on CB-14252:
-------------------------------------
janpio closed pull request #57: CB-14252: Allow to send --silent arg to run
command to disable output
URL: https://github.com/apache/cordova-browser/pull/57
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/bin/template/cordova/lib/run.js b/bin/template/cordova/lib/run.js
index fc58630..90a58c5 100644
--- a/bin/template/cordova/lib/run.js
+++ b/bin/template/cordova/lib/run.js
@@ -28,6 +28,7 @@ module.exports.run = function (args) {
// defaults
args.port = args.port || 8000;
args.target = args.target || 'default'; // make default the system browser
+ args.noLogOutput = args.silent || false;
var wwwPath = path.join(__dirname, '../../www');
var manifestFilePath = path.resolve(path.join(wwwPath, 'manifest.json'));
@@ -45,7 +46,7 @@ module.exports.run = function (args) {
}
var server = cordovaServe();
- server.servePlatform('browser', {port: args.port, noServerInfo: true})
+ server.servePlatform('browser', {port: args.port, noServerInfo: true,
noLogOutput: args.noLogOutput})
.then(function () {
if (!startPage) {
// failing all else, set the default
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Disable output from console
> ---------------------------
>
> Key: CB-14252
> URL: https://issues.apache.org/jira/browse/CB-14252
> Project: Apache Cordova
> Issue Type: Improvement
> Components: cordova-browser
> Reporter: Hugo Freire
> Assignee: Jesse MacFadyen
> Priority: Minor
>
> It's useful to reduce the verbosity when you are working with build tools
> like webpack
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]