Skip to content

Commit e6d81c8

Browse files
authored
Merge pull request #20 from onigoetz/origin/patch-1
Replace `Once` with `OnceExit` to do the compression last (fixes #19)
2 parents 7b267e0 + 08b75a2 commit e6d81c8

File tree

4 files changed

+527
-729
lines changed

4 files changed

+527
-729
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const cssoToPostcss = require('./lib/cssoToPostcss.js');
44

55
module.exports = (options = {}) => ({
66
postcssPlugin: 'postcss-csso',
7-
Once(root, { result, postcss }) {
7+
OnceExit(root, { result, postcss }) {
88
result.root = cssoToPostcss(compress(postcssToCsso(root), options).ast, postcss);
99
}
1010
});

0 commit comments

Comments
 (0)