No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    WARNING in asset size limit

    CLI
    3
    5
    3844
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • C
      cherry314159 last edited by

      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?

      Martin 1 Reply Last reply Reply Quote 0
      • rstoenescu
        rstoenescu Admin last edited by

        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

        1 Reply Last reply Reply Quote 2
        • C
          cherry314159 last edited by

          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

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

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

            1 Reply Last reply Reply Quote 0
            • Martin
              Martin @cherry314159 last edited by Martin

              @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.

              1 Reply Last reply Reply Quote 3
              • First post
                Last post