Optimizing Vue.js webpack chunks in webpack.base.conf.js


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Optimizing Vue.js webpack chunks in webpack.base.conf.js

Recently, the Vue.js app I am building starting getting some very large chucks which were causing the javascript to load very slowly.

I added some code to webpack.base.conf.js and it made a huge difference in chuck optimization and loading time:

Code:
module.exports = {
  optimization: {
    splitChunks: {
      chunks: "all"
    }
  },
 
 /* other stuff here */
}

This small change in the webpack configuration resulted in a huge improvement in load times. Incredible.

External Ref: SplitChunksPlugin | webpack

Internal Ref: UserCP Screeching Frog 0.7493
This User Gave Thanks to Neo For This Post:
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Vue JS 2 Tutorial by The Net Ninja: A Recommended Vue.js Video Tutorial Series
Neo
A number of people have asked me how to get started with Vue.js and my reply before today was to Google "Vue.js". That has changed and my recommendation to anyone who wants to learn the fastest growing, easiest to learn and use Vue.js web dev framework is to watch this video tutorial series: ...... Web Development
0
Web Development
Simple Vue.js Component to Redirect to External Web Page Using Vue Router
Neo
Vue Router has some quirks and on of the quirks is that it is not reliable when adding external links using the vue-router library. After struggling with many solutions, I have found that creating a simple Vue.js component like this one seems to work the best (so far): Component Example: ...... Web Development
0
Web Development
Script to update rsyslog.conf and auditd.conf
Mide
Hello all, Newbie here. I'm currently tasked with updating rsyslog.conf and auditd.conf on a large set of servers. I know the exact logging configurations that I want to enable. I have updated both files on on a server and hope to use the updated files as a template for the rest of the...... Shell Programming and Scripting
3
Shell Programming and Scripting
basic question on sd.conf and lpc.conf file
mokkan
Hello Guys, Do we need to configure this file only if we add SAN disk or even if we add local disk, do we need to modify?... Solaris
4
Solaris
Configuring snmpd.conf and snmptrapd.conf
jagdish.machhi@
HI, I want a help for Configuring snmpd.conf and snmptrapd.conf (i.e Configuring SNMP) for receiving TRAPS in my networks. I am using RHEL4.0 OS. Please tell me How I can configure above two files in a proper way and at an advanced level. Especially I am getting...... UNIX for Advanced & Expert Users
2
UNIX for Advanced & Expert Users
Red Hat Linux

Red Hat, Inc. is a global American software company providing open-source software products to the enterprise community. Red Hat was Founded in 1993, and has its corporate headquarters in Raleigh, North Carolina, with other offices worldwide. On October 28, 2018, IBM announced its intent to acquire Red Hat for $34 billion. Red Hat has focused on Red Hat Enterprise Linux an enterprise operating system. Red Hat also acquired the open-source enterprise middleware vendor JBoss. Red Hat also sells an enterprise virtualization product, Red Hat Virtualization (RHV). Red Hat also provides storage, operating system platforms, middleware, applications, management products, and support, training, and consulting services. Red Hat actively creates, maintains, and contributes to many free and open software projects. Red Hat has acquired several proprietary software products through corporate mergers and acquisitions and has released these software acquisitions under open-source licenses.
Please enjoy and help our forum community by "showing your work" and posting your code, even when your code is not working as expected. To help others help you, please wrap your code blocks, sample input, sample output, error messages, and other data in CODE tags and wrap your short commands and short data objects in ICODE tags. We were all beginners in the beginning. If you have any questions about how to register or how to post, please contact us in Live Chat. Thank you and enjoy this "forever free" technical support community for UNIX, Linux and computer information technology in general.