PrestaShop / prestashop-ui-kit

UI kit for PrestaShop Backoffice - A collection of styled components, based on Bootstrap 4
47 stars 28 forks source link

Mute traces of jQuery migrate if the UIKit is not in dev mode #145

Closed NeOMakinG closed 3 years ago

NeOMakinG commented 3 years ago
Questions Answers
Description? Traces are really annoying while developing on something in PrestaShop BO, we need to mute traces if we're not working on the UIKit, but we need to keep warnings otherwise we'll never take these in account
Type? improvement
BC breaks? no
Deprecations? no
How to test? Inside prestashop new-theme package.json, use NeOMakinG/prestashop-ui-kit#drop-console instead of the prestakit version, build new-theme folder using rm -rf node_modules && npm i && npm run build and go in the BO, you should only see migrate warnings if prestashop debug mode is enabled but not traces of these warning

Before

image

After

image