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 = {
moduleIds: 'hashed',
runtimeChunk: 'single',
splitChunks: {
maxInitialRequests: 4,
maxInitialRequests: 20,
cacheGroups: {
default: false,
common: () => ({
......
......@@ -3,7 +3,7 @@
require 'spec_helper'
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
allow(Gitlab.config.sentry).to receive(:enabled).and_return(false)
......@@ -22,7 +22,7 @@ RSpec.describe 'Sentry' do
def has_requested_sentry
page.all('script', visible: false).one? do |elm|
elm[:src] =~ /#{sentry_path}$/
elm[:src] =~ /#{sentry_regex_path}$/
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