Skip to content

Commit

Permalink
Clarify warning about no targets (#1409)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Pwntheon committed May 26, 2021
1 parent 9836cfa commit 397d796
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lib/autoprefixer.js
Expand Up @@ -43,9 +43,13 @@ function timeCapsule(result, prefixes) {

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

Expand Down

0 comments on commit 397d796

Please sign in to comment.