Skip to content

Commit e140a29

Browse files
committed
Error when using unsupported PostCSS version (postcss#361)
1 parent 4b9b66d commit e140a29

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

+5
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)