harlan-zw / nuxt-webpack-optimisations

Make your Nuxt.js webpack builds faster ⚡
271 stars 8 forks source link

can't use measure option #28

Closed hingjip closed 3 years ago

hingjip commented 3 years ago

Describe the bug When I set the measure option to true. It will throw "nuxt.hook is not a function" error. nuxt version: 2.14.4 nuxt-build-optimisations version: 1.5.0

To Reproduce Steps to reproduce the behavior:

  1. install nuxt-build-optimisations
  2. set buildModules: ['nuxt-build-optimisations']
  3. set buildOptimisations: { profile: 'safe', measure: true }

Expected behavior Show SMP result and build successfully.

Screenshots image

Additional context If I remove measure option, it works fine.

harlan-zw commented 3 years ago

Hey @hingjip

Thanks for the issue, apologies for the long delay. I missed the notification.

Will be fixed in 1.0.6