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

    quasar dev build is getting very slow

    Help
    6
    9
    4633
    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.
    • Martin
      Martin last edited by

      Before I start digging into webpack, does anyone know what “the usual suspects” are when web pack builds are getting slow.
      My dev build is reaching 2 min by now!
      Thanks.
      0_1494849616363_upload-e9d5fde9-b1c7-4af3-b340-67a234ba9612

      1 Reply Last reply Reply Quote 0
      • A
        afd last edited by

        Maybe this can help you: https://play.pixelblaster.ro/blog/2017/03/02/analyse-and-optimize-a-webpack-vuejs-bundle/

        1 Reply Last reply Reply Quote 0
        • S
          spectrolite last edited by

          Almost 100MB of javascript generated… I’d say 100 seconds seems ok.
          Either you were inlining many images, or there was some real problem there.
          I’m curious how it turned out.

          1 Reply Last reply Reply Quote 0
          • J
            JCharante last edited by

            That’s a lot of javascript!

            1 Reply Last reply Reply Quote 0
            • LaurentPayot
              LaurentPayot last edited by LaurentPayot

              Lots of chunks. Are you using webpack lazy loading a lot or do you simply have lots of pages? For faster download times I do not use the lazy load function of the router template for my landing page components, and it reduces the chunks number.

              Also did you try https://github.com/amireh/happypack ? It reduced my build time a little little bit, but it may be useful to you.

              1 Reply Last reply Reply Quote 0
              • LaurentPayot
                LaurentPayot last edited by LaurentPayot

                And these are MB chunks! Are you using images in src/assets? Once turned into base64 by webpack they can get huge in size.

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

                  All my media files are in the statics dir.
                  Meanwhile I discovered a nasty bug with firebase and webpack. Turns out that webpack is adding the entire firebase.js each time it sees a method call to this package. After ditching firebase my build is now ~ 10Mb.
                  Nevertheless, my dev build still lasts for about 16 secs now. When I start off with a clean quasar build again , build time starts around 5 secs, but over time (weeks) it increases. Last week it suddenly went from 15 secs to 50 secs, after doing some regular coding. No module installs or anything else. Webpack is becoming very annoying. I can see on google that a lot of people are battling slow build times. I think I’ll lock my self up for a week and start learning webpack from the ground up again.

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

                    I just updated to webpack 3.5.1 build time is now 4 secs.
                    Seems to work ok with quasar .13.4

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

                      The webpack guys say they are working on improving build speed (for webpack 3.x) by using different techniques. One example is caching on disk (so that subsequent builds will be faster). Let’s wait and see… I can only hope webpack becomes better and better.

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