Skip to content

Commit 96b6521

Browse files
authored
Error when using unsupported PostCSS version (fix postcss#361) (postcss#362)
1 parent 4b9b66d commit 96b6521

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ if (argv.watch) {
5656
process.stdin.resume()
5757
}
5858

59+
/* istanbul ignore next */
60+
if (parseInt(postcss().version) < 8) {
61+
error('Please install PostCSS 8 or above')
62+
}
63+
5964
Promise.resolve()
6065
.then(() => {
6166
if (argv.watch && !(argv.output || argv.replace || argv.dir)) {

0 commit comments

Comments
 (0)