iflix-letsplay / rukus-loader

webpack loader for rukus
ISC License
0 stars 1 forks source link

Configurable warning/error levels #9

Open joshgillies opened 8 years ago

joshgillies commented 8 years ago

Currently rulus-loader offers insight into your component hierarchy via messages logged into the webpack loader pipeline. Their use is to relay information relating to missing required and optional component files eg. index.js, index.html, test.js, etc. These messages are currently static, and while beneficial in the majority case, can produce a lot of noise especially as your project grows. For more advanced Rukus apps ideally we should offer a way to configure these messages.

My thoughts are toward adding a logLevel configuration option that can be passed to the loader.

rukus-loader?["./components"]&logLevel=verbose

where the available logLevel options are:

@obrin I'd be interested to hear your thoughts toward this, given your interest in the topic of Rukus loader output. :smile:

Ref: #8