debug: Show PostCSS config only when used

This commit is contained in:
Atinux 2017-11-06 18:30:50 +01:00
parent 3d49d8d290
commit f5fa44d8aa

View File

@ -109,7 +109,9 @@ Options.from = function (_options) {
} }
} }
} else { } else {
if (Object.keys(options.build.postcss).length) {
debug('Using PostCSS config from `build.postcss`') debug('Using PostCSS config from `build.postcss`')
}
// Normalize & Apply default plugins // Normalize & Apply default plugins
if (Array.isArray(options.build.postcss)) { if (Array.isArray(options.build.postcss)) {
options.build.postcss = { plugins: options.build.postcss } options.build.postcss = { plugins: options.build.postcss }