WARNING in asset size limit



  • Working on my first project but I’ve started to receive this warning.
    I don’t feel that the project is that big yet. Is there a way to remove
    this warning?


  • Admin

    Hi,

    Indeed dev mode should not display performance hints as the mode is not intended to be resource efficient. There’s a lot of debugging stuff that get into dev mode, and in one single file :)

    Anyway, have pushed a commit which disables webpack perf hints for dev mode by default. On an already spawned project folder you can just add this piece of code to your build/webpack.dev.conf.js AFTER plugins:

    performance: {
      hints: false
    }
    

    Cheers,
    Razvan



  • I can confirm that the change removes the warning in dev mode.
    However, a quasar build still generates an error:

    WARNING in asset size limit: The following asset(s) exceed the recommended size limit (250 kB).
    This can impact web performance.
    Assets:
    js/vendor.js (525 kB)

    WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (250 kB). This can impact web performance.
    Entrypoints:
    app (776 kB)
    js/manifest.js
    js/vendor.js
    js/app.js
    app.b7367fbcd48a0120344950ee4608e950.css


  • Admin

    Add same config for prod webpack conf too then. Productiin builds should have this.



  • @cherry314159 it’s indeed a “bug” that sneeked into one of latest webpack builds. I fixed it in the base file.

    As for “bigness”, quasar is not big yet in terms of nr of contributors, but it is in terms of completeness. On top of that, it’s high quality code/ low bugs. At least that’s been my experience for last 3 months. Also gitstars are rising rapidly.


Log in to reply
 

Looks like your connection to Quasar Framework was lost, please wait while we try to reconnect.