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

Not passing modules to the split handler, causes error #1

Closed mrnocreativity closed 8 years ago

mrnocreativity commented 8 years ago
Error ocurred:
  Cannot read property 'length' of null
  => /.../site/src/main/resources/static/css/main.css

TypeError: Cannot read property 'length' of null
    at isStartTag (/.../site/src/main/webapp/WEB-SRC/node_modules/postcss-critical-split/index.js:184:26)

I'm aware of this breaking change and will apply a fix later today.

mrnocreativity commented 8 years ago

This has been fixed in release v2.2.2