10 lines
282 B
JavaScript
10 lines
282 B
JavaScript
|
import { keyword as resolveKeyword } from 'css-tree';
|
||
|
import compressKeyframes from './atrule/keyframes.js';
|
||
|
|
||
|
export default function(node) {
|
||
|
// compress @keyframe selectors
|
||
|
if (resolveKeyword(node.name).basename === 'keyframes') {
|
||
|
compressKeyframes(node);
|
||
|
}
|
||
|
};
|