Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify warning about no targets #1409

Merged
merged 2 commits into from May 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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