Skip to content

Commit

Permalink
Error when using unsupported PostCSS version (fix #361) (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkverse committed Dec 8, 2020
1 parent 4b9b66d commit 96b6521
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 96b6521

Please sign in to comment.