Skip to content

more sensible code splitting options for vendor.js in quasar #12489

Answered by yeus
yeus asked this question in Ideas / Proposals
Discussion options

You must be logged in to vote

ok.. I have put some more research into this and basically found my own solution completely overriding quasar package bundling:

chainWebpack ( chain ) {
  if(ctx.prod) {
    chain.optimization.splitChunks({
      ...chain.optimization.get('splitChunks'),
      minSize: 20000,
      cacheGroups: {
        vendor_initial: {
          test: /[\\/]node_modules[\\/]/,
          priority: 20,
          reuseExistingChunk: true,
          name: 'vendor',
          chunks: 'initial',
        },
        vendor_whitelist: {
          test: /[\\/]node_modules[\\/](vue|quasar|axios|core-js)[\\/]/,
          priority: 20,
          reuseExistingChunk: true,
          name: 'vendor',
          chunks: '…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
6 replies
@yeus
Comment options

@franco-onevillas
Comment options

@franco-onevillas
Comment options

@yeus
Comment options

@franco-onevillas
Comment options

Answer selected by yeus
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants