From 58259b71160d74cb0e9ef21b8a66ae29804a7f87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sat, 19 Sep 2020 13:05:32 +0200 Subject: [PATCH 1/3] upgrade postcss --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c219bc..303b8c5 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "fast-json-parse": "^1.0.2", "insert-css": "^2.0.0", "map-limit": "0.0.1", - "postcss": "^6.0.23", + "postcss": "^8.0.5", "postcss-prefix": "^2.0.0", "resolve": "^1.1.7", "stack-trace": "0.0.10", From 2614b09cee29fece0666d902d278f91088afdf01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sat, 19 Sep 2020 13:14:14 +0200 Subject: [PATCH 2/3] upgrade postcss-prefix --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 303b8c5..dfc46e0 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "insert-css": "^2.0.0", "map-limit": "0.0.1", "postcss": "^8.0.5", - "postcss-prefix": "^2.0.0", + "postcss-prefix": "^3.0.0", "resolve": "^1.1.7", "stack-trace": "0.0.10", "static-eval": "^2.0.0", From 676ce702b890aed918ec166f0da1fb5474aaf673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9e=20Kooi?= Date: Sat, 19 Sep 2020 13:16:10 +0200 Subject: [PATCH 3/3] use postcss plugin array init syntax --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index c7cfde1..b065e49 100644 --- a/index.js +++ b/index.js @@ -65,8 +65,7 @@ function parseCss (src, filename, prefix, options, done) { applyTransforms(filename, String(src), Object.assign({}, options), function (err, result) { if (err) return done(err) - var p = postcss() - p = p.use(cssPrefix('.' + prefix)) + var p = postcss([cssPrefix('.' + prefix)]) try { result.css = p.process(result.css).toString()