Skip to content

Commit

Permalink
Error when using unsupported PostCSS version (postcss#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkverse committed Dec 6, 2020
1 parent 4b9b66d commit e140a29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions index.js
Expand Up @@ -56,6 +56,11 @@ if (argv.watch) {
process.stdin.resume()
}

/* istanbul ignore next */
if (parseInt(postcss().version) < 8) {
error('Please install PostCSS 8 or above')
}

Promise.resolve()
.then(() => {
if (argv.watch && !(argv.output || argv.replace || argv.dir)) {
Expand Down

0 comments on commit e140a29

Please sign in to comment.