mrnocreativity / postcss-critical-split

A PostCSS plugin that takes existing CSS files and splits out the annotated critical styles into a seperate file.
MIT License
89 stars 6 forks source link

doesn't work with /*! #11

Closed romanlex closed 6 years ago

romanlex commented 6 years ago

cssnano doesn't remove any comments with started as /*! but if I put in my sass file this

/*! critical:start */

/*! critical:end */

criticalSplit not work(

andyjansson commented 6 years ago

https://github.com/cssnano/cssnano/tree/master/packages/postcss-discard-comments#removeall

mrnocreativity commented 6 years ago

Sorry for the super late reply. I'm currently looking into it. Might push out an update later today!

mrnocreativity commented 6 years ago

Just completed work to support comments like that. It does required the space though. So /*!critical*/ will not work. /*! critical*/ will work. I'll release this later today.