Commit d7056aec authored by Denys Mishunov's avatar Denys Mishunov Committed by Mike Greiling

Bumping up the maxSize to 600k

A series of experiements showed this as the optimal spot for
the most benefit for the bundle
parent a50bd89d
...@@ -255,7 +255,7 @@ module.exports = { ...@@ -255,7 +255,7 @@ module.exports = {
moduleIds: 'hashed', moduleIds: 'hashed',
runtimeChunk: 'single', runtimeChunk: 'single',
splitChunks: { splitChunks: {
maxInitialRequests: 4, maxInitialRequests: 20,
cacheGroups: { cacheGroups: {
default: false, default: false,
common: () => ({ common: () => ({
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'spec_helper' require 'spec_helper'
RSpec.describe 'Sentry' do RSpec.describe 'Sentry' do
let(:sentry_path) { '/sentry.chunk.js' } let(:sentry_regex_path) { '\/sentry.*\.chunk\.js' }
it 'does not load sentry if sentry is disabled' do it 'does not load sentry if sentry is disabled' do
allow(Gitlab.config.sentry).to receive(:enabled).and_return(false) allow(Gitlab.config.sentry).to receive(:enabled).and_return(false)
...@@ -22,7 +22,7 @@ RSpec.describe 'Sentry' do ...@@ -22,7 +22,7 @@ RSpec.describe 'Sentry' do
def has_requested_sentry def has_requested_sentry
page.all('script', visible: false).one? do |elm| page.all('script', visible: false).one? do |elm|
elm[:src] =~ /#{sentry_path}$/ elm[:src] =~ /#{sentry_regex_path}$/
end end
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment