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

    How to use "Speed Measure Plugin" - or other build profiling?

    Help
    build webpack
    1
    1
    325
    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.
    • tmladek
      tmladek last edited by tmladek

      Building my app, from start to finish, takes about 4-5 minutes, which is quite long.

      I would like to use the Speed Measure Plugin to see what are the points that take up the most time so I can start optimizing, but according to it’s readme, the intended usage is to wrap and replace the entire config:

      const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
      
      const webpackConfig = smp.wrap({
        plugins: [
          new MyPlugin(),
          new MyOtherPlugin()
        ]
      });
      

      However, according to the Quasar docs, the extendWebpack() function allows just that - extending the config, but it doesn’t seem to allow replacing it entirely.

      I still tried returning the wrapped config like vue.config.js's configureWebpack() would allow:

      const SpeedMeasurePlugin = require('speed-measure-webpack-plugin');
      
      // ...
            extendWebpack (cfg) {
                  return smp.wrap(cfg);
            }
      // ...
      

      But I Immediately get this error when trying to build it:

      (node:42345) UnhandledPromiseRejectionWarning:   TypeError: Cannot read property 'tapAsync' of undefined
      

      Which makes me think I’m doing something wrong.

      Did anybody get this plugin to work with Quasar? Or does anyone have any recommendations about other plugins that could be used to profile the build? Thanks!

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