Skip to content

Commit 397d796

Browse files
authored
Clarify warning about no targets (#1409)
* Clarify warning about no targets Due to user error or outdated sctips, users may be warned about no prefixes being applied. Rewrite this error message to be more understandable. * Fix missing append operator
1 parent 9836cfa commit 397d796

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/autoprefixer.js

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

4444
/* istanbul ignore next */
4545
result.warn(
46-
'Greetings, time traveller. ' +
47-
'We are in the golden age of prefix-less CSS, ' +
48-
'where Autoprefixer is no longer needed for your stylesheet.'
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'
4953
)
5054
}
5155

0 commit comments

Comments
 (0)