harlan-zw / nuxt-webpack-optimisations

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

Profile: 'false' is still applying optimizations #21

Closed urbgimtam closed 3 years ago

urbgimtam commented 3 years ago

Describe the bug When module is installed and buildOptimisations profile is 'false', I still get 2x to 3x faster build times. When module is uninstalled, build times go back to regular.

To Reproduce Steps to reproduce the behavior:

  1. Install module and configure buildOptimisations.profile as 'false'
  2. Run nuxt build and store the measures for client and server
  3. Uninstall module (and remove settings from nuxt.config.js).
  4. Run nuxt build and store the measures for client and server

Expected behavior When module is installed and buildOptimisations profile is 'false', it should not perform any optimization.

urbgimtam commented 3 years ago

Maybe linked to #20 'Avoid overriding users default nuxt configurations' ?

harlan-zw commented 3 years ago

Hey @urbgimtam

Apologies for the many months of delay... I did fix this in 1.0.3 I believe but the logger was still showing it was disabled, that should be fixed now in 1.0.4