Skip to content

Silence Ractive debug messages #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

timoxley
Copy link

@timoxley timoxley commented Oct 19, 2016

This silences the debug text that Ractive prints to the console. Prevents messy webpack build terminal output.

Since updating to Ractive 0.8.0, webpack builds are trashed by ractive's debug messages:

# building clientside application
node --max-old-space-size=4096 `which webpack` --output-path dist/build -d --watch --progress --color
 42% 28/52 build modules%cRactive.js %c0.8.0 %cin debug mode, %cmore... color: rgb(114, 157, 52); font-weight: normal; color: rgb(85, 85, 85); font-weight: normal; color: rgb(85, 85, 85); font-weight: normal; color: rgb(82, 140, 224); font-weight: normal; text-decoration: underline;
You're running Ractive 0.8.0 in debug mode - messages will be printed to the console to help you fix problems and optimise your application.

To disable debug mode, add this line at the start of your app:
  Ractive.DEBUG = false;

To disable debug mode when your app is minified, add this snippet:
  Ractive.DEBUG = /unminified/.test(function(){/*unminified*/});

Get help and support:
  http://docs.ractivejs.org
  http://stackoverflow.com/questions/tagged/ractivejs
  http://groups.google.com/forum/#!forum/ractive-js
  http://twitter.com/ractivejs

Found a bug? Raise an issue:
  https://github.com/ractivejs/ractive/issues


%cRactive.js: %cUnqualified method events are deprecated. Prefix methods with '@this.' to call methods on the current Ractive instance. color: rgb(114, 157, 52); color: rgb(85, 85, 85);
 59% 373/451 build modules%cRactive.js: %cProxy events with arguments are deprecated. You can fire events with arguments using "@this.fire('eventName', arg1, arg2, ...)". color: rgb(114, 157, 52); color: rgb(85, 85, 85);

Ideally this would be an option passed into the loader, but this is a good start.

This silences the debug text that Ractive prints to the console. Prevents messy webpack build terminal output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant