Sponsored Content
Top Forums Web Development Optimizing Vue.js webpack chunks in webpack.base.conf.js Post 303033713 by Neo on Wednesday 10th of April 2019 11:43:12 AM
Old 04-10-2019
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:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Configuring snmpd.conf and snmptrapd.conf

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... (2 Replies)
Discussion started by: jagdish.machhi@
2 Replies

2. Solaris

basic question on sd.conf and lpc.conf file

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? (4 Replies)
Discussion started by: mokkan
4 Replies

3. Red Hat

CentOS 6.1 base install (like FreeBSD base install)?

Hello, What is the simplest way to install CentOS 6.1 with console base-system only using official LiveDVD image on VirtualBox machine? I'd like to get simplest console with network support like FreeBSD base installation. Then, install services which I need. The installer jest extracts the... (2 Replies)
Discussion started by: newbie_develope
2 Replies

4. Shell Programming and Scripting

onstat -d chunks perl monitor

I have a file I need to monitor with a perl script with the following format. I need to send off a 0 if it is above 95 in the 5th colum and a 1 if it is below. Any help on a simple perl script would be great. 75424958 999975 983170 /dev/rmetrochunk00 98.32 760c2dd8 ... (3 Replies)
Discussion started by: jlaigo2
3 Replies

5. Shell Programming and Scripting

Combining chunks of data

Hi there! Need help on some issue, I have data like this: 123 456 789 012 i need it to be like this: 123789 456012 Anyone has any idea how to do this? Thanks! Regards, Ken How to use code tags (8 Replies)
Discussion started by: kennethtls
8 Replies

6. Red Hat

Free() corrupted unsorted chunks

We are migrating Pro*C code from SOLARIS to LINUX-Redhat. While migrating we face memory de-allocation issue intermittently when accessing large volume of data. Below is the part of the code(since code is big I am putting the part of the code where the issue comes): ... (8 Replies)
Discussion started by: Karunx
8 Replies

7. Shell Programming and Scripting

Script to update rsyslog.conf and auditd.conf

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... (3 Replies)
Discussion started by: Mide
3 Replies

8. Solaris

Configure resolv.conf and nsswitch.conf

Hi, I've installed Solaris 11.3(live media) and configured DNS. Everytime I reboot the server, resolv.conf got deleted and it created a new nsswitch.conf. I used below to configure both settings: # svccfg -s dns/client svc:/network/dns/client> setprop config/nameserver = (xx.xx.xx.aa... (1 Reply)
Discussion started by: flexihopper18
1 Replies

9. Web Development

Simple Vue.js Component to Redirect to External Web Page Using Vue Router

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: ... (0 Replies)
Discussion started by: Neo
0 Replies

10. Web Development

Vue JS 2 Tutorial by The Net Ninja: A Recommended Vue.js Video Tutorial Series

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: ... (0 Replies)
Discussion started by: Neo
0 Replies
Mojolicious::Plugin::Config(3pm)			User Contributed Perl Documentation			  Mojolicious::Plugin::Config(3pm)

NAME
Mojolicious::Plugin::Config - Perl-ish configuration plugin SYNOPSIS
# myapp.conf { foo => "bar", music_dir => app->home->rel_dir('music') }; # Mojolicious my $config = $self->plugin('Config'); # Mojolicious::Lite my $config = plugin 'Config'; # Reads "myapp.conf" by default my $config = app->config; # Everything can be customized with options my $config = plugin Config => {file => '/etc/myapp.stuff'}; DESCRIPTION
Mojolicious::Plugin::Config is a Perl-ish configuration plugin. The application object can be accessed via $app or the "app" function. You can extend the normal configuration file "myapp.conf" with "mode" specific ones like "myapp.$mode.conf". A default configuration filename will be generated by decamelizing the application class with "decamelize" in Mojo::Util or from the application filename. The code of this plugin is a good example for learning to build new plugins, you're welcome to fork it. OPTIONS
Mojolicious::Plugin::Config supports the following options. "default" # Mojolicious::Lite plugin Config => {default => {foo => 'bar'}}; Default configuration, making configuration files optional. "ext" # Mojolicious::Lite plugin Config => {ext => 'stuff'}; File extension for generated configuration filenames, defaults to "conf". "file" # Mojolicious::Lite plugin Config => {file => 'myapp.conf'}; plugin Config => {file => '/etc/foo.stuff'}; Full path to configuration file, defaults to the value of the "MOJO_CONFIG" environment variable or "myapp.conf" in the application home directory. METHODS
Mojolicious::Plugin::Config inherits all methods from Mojolicious::Plugin and implements the following new ones. "load" $plugin->load($file, $conf, $app); Loads configuration file and passes the content to "parse". sub load { my ($self, $file, $conf, $app) = @_; ... return $self->parse($content, $file, $conf, $app); } "parse" $plugin->parse($content, $file, $conf, $app); Parse configuration file. sub parse { my ($self, $content, $file, $conf, $app) = @_; ... return $hash; } "register" my $config = $plugin->register($app, $conf); Register plugin in Mojolicious application. SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojolicious::Plugin::Config(3pm)
All times are GMT -4. The time now is 09:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy