Closed aabenoja closed 9 years ago
Ignoring keyframes, font-faces, and imports when parsing. These will not impact the selector limit. Although test coverage for keyframes have been added, the feature is not supported below IE10.
@aabenoja got a source to back this up? :smile:
@adam-lynch Font-faces don't have selectors. Imports have a separate limit (31 according to this blog post). Keyframes don't use css selectors.
@aabenoja ah yeah ok, must've misread the original comment. Thanks.
Maybe @supports should be ignored. It doesn't even work in IE, but could be in the file I guess.
@adam-lynch I didn't even know that rule existed. I think I might be better off modifying the else to auto-ignore these cases.These empty case blocks are adding up. On the other, it's nice to be explicit.
Opting for an explicit ignore on @supports, making it easier to revisit later.
Will most likely defer this to #45
I'd like to investigate more before ignore certain parts of the AST.
There was some subtle nuances in previous versions to avoid splitting files in the middle of blocks and that sort of thing.
keyframes
,font-faces
, andimports
when parsing. These will not impact the selector limit. Although test coverage forkeyframes
have been added, the feature is not supported below IE10.require('parser')
does not make sense for modules that consumebless.js
. Renamingparser
back tobless
, withparser
being exported in an object.prepublish
, which executes a build script afternpm install