GoogleChromeLabs / critters

🦔 A Webpack plugin to inline your critical CSS and lazy-load the rest.

Home Page:https://npm.im/critters-webpack-plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

problem with Angular !!

aymenbz opened this issue · comments

i'm trying to use this plugin with Angular, it works but i'm getting an error
Uncaught Error: In this configuration Angular requires Zone.js
and because of this error there is some features not working anymore.

and this is my code

new HtmlWebpackPlugin({
      filename: 'index.html',
      template: './src/index.html',
      chunksSortMode: 'none',
    }),
    new Critters({
      pruneSource: false
    })

Does anyone have an example working with Angular ?
Thanks

I don't think the error you're seeing has anything to do with Critters.