From c1b26d1229ab167343f2dd60f994b304e37adb51 Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Wed, 26 May 2021 10:16:01 -0400 Subject: [PATCH] Better warning text --- lib/autoprefixer.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/autoprefixer.js b/lib/autoprefixer.js index 71f2fc77a..ae69c59ec 100644 --- a/lib/autoprefixer.js +++ b/lib/autoprefixer.js @@ -43,13 +43,15 @@ function timeCapsule(result, prefixes) { /* istanbul ignore next */ result.warn( - 'Autoprefixer applied with no browsers, prefixes or selectors in the target list. ' + - 'This is redundant, and no prefixes will be applied. ' + - 'Make sure your targets are set up correctly.\n' + - '\n' + - ' Learn more at:\n' + - ' https://github.com/postcss/autoprefixer#readme\n' + - '\n' + 'Autoprefixer target browsers do not need any prefixes.' + + 'You do not need Autoprefixer anymore.\n' + + 'Check your Browserslist config to be sure that your targets ' + + 'are set up correctly.\n' + + '\n' + + ' Learn more at:\n' + + ' https://github.com/postcss/autoprefixer#readme\n' + + ' https://github.com/browserslist/browserslist#readme\n' + + '\n' ) }