Skip to content

Commit 12053aa

Browse files
author
Peter Ramsing
committed
♻️ Moves to using prepare from PostCSS 8
1 parent 5317183 commit 12053aa

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lost.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,15 @@ const defaultSettings = {
4848
module.exports = (settings = {}) => {
4949
return {
5050
postcssPlugin: 'lost',
51-
Once(css, { result }) {
51+
prepare() {
5252
let runSettings = assign({}, defaultSettings, settings | {});
53-
libs.forEach((lib) => {
54-
lib(css, runSettings, result);
55-
});
53+
return {
54+
Once(css, { result }) {
55+
libs.forEach((lib) => {
56+
lib(css, runSettings, result);
57+
});
58+
},
59+
};
5660
},
5761
};
5862
};

0 commit comments

Comments
 (0)