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

    Code splitting (webpackChunkName)

    Help
    2
    3
    1116
    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.
    • E
      eugene last edited by

      Is there a way to enable ‘webpackChunkName’ for code splitting in quasar config?

      What I’m doing in my routes is basically trying to put everything that goes under /auth route and all of its children into the same bundle:

      export default [
      {
      path: ‘/auth’,
      component: () => import(/* webpackChunkName: “auth” / ‘layouts/auth’),
      children: [{
      path: ‘login’,
      component: () => import(/
      webpackChunkName: “auth” */ ‘components/auth/AuthLogin’)
      }, {
      path: ‘’,
      redirect: ‘login’
      }]
      }
      ]

      After running qusar buiild, I’d expect to see js/auth.41e0cf096add72be2a2e.js bundle created

      Thanks!

      1 Reply Last reply Reply Quote 0
      • E
        eugene last edited by

        v 0.15 of course

        1 Reply Last reply Reply Quote 0
        • T
          tyllo last edited by tyllo

          needs:

          1. remove in .babelrc “comments”: false
          2. Change chunkFilename in quasar.conf.js extendWebpack section - like cfg.output.chunkFilename = cfg.output.chunkFilename.replace('[id]', '[name]-[id]')
          1 Reply Last reply Reply Quote 0
          • First post
            Last post