Skip to content

Commit c1b26d1

Browse files
committed
Better warning text
1 parent 8d492b3 commit c1b26d1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

lib/autoprefixer.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,15 @@ function timeCapsule(result, prefixes) {
4343

4444
/* istanbul ignore next */
4545
result.warn(
46-
'Autoprefixer applied with no browsers, prefixes or selectors in the target list. ' +
47-
'This is redundant, and no prefixes will be applied. ' +
48-
'Make sure your targets are set up correctly.\n' +
49-
'\n' +
50-
' Learn more at:\n' +
51-
' https://github.com/postcss/autoprefixer#readme\n' +
52-
'\n'
46+
'Autoprefixer target browsers do not need any prefixes.' +
47+
'You do not need Autoprefixer anymore.\n' +
48+
'Check your Browserslist config to be sure that your targets ' +
49+
'are set up correctly.\n' +
50+
'\n' +
51+
' Learn more at:\n' +
52+
' https://github.com/postcss/autoprefixer#readme\n' +
53+
' https://github.com/browserslist/browserslist#readme\n' +
54+
'\n'
5355
)
5456
}
5557

0 commit comments

Comments
 (0)