[Solved] Small js files in dist directory. Please help me combine to one file by cli.

  • I make quasar build command and in result files see 44 small js files.
    This enlarge time of site response.

    Please help me define cli setup for working with only 1 js file.

    And same case for css small files.

  • Typically, those small js files are in reference to a vue file. The vue files are then loaded “on-demand” when the user accesses the page and the page is loaded via the router by doing component: () => import('layouts/default'),. This means, only the pages that the user navigates to will be loaded, making your site more responsive (instead of loading in all pages at once).

  • OK. Thank you!

Log in to reply