Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0f0baaee
Commit
0f0baaee
authored
Jun 11, 2018
by
Lukas Eipert
Committed by
Tim Zallmann
Jun 11, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set `max_old_space_size` option of node to 3.5GB during compile:assets
parent
11d47876
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
.gitlab-ci.yml
.gitlab-ci.yml
+7
-0
config/webpack.config.js
config/webpack.config.js
+2
-5
No files found.
.gitlab-ci.yml
View file @
0f0baaee
...
...
@@ -529,7 +529,11 @@ compile-assets:
-
date
-
yarn install --frozen-lockfile --cache-folder .yarn-cache
-
date
-
free -m
-
bundle exec rake gitlab:assets:compile
variables
:
# we override the max_old_space_size to prevent OOM errors
NODE_OPTIONS
:
--max_old_space_size=3584
artifacts
:
expire_in
:
7d
paths
:
...
...
@@ -826,10 +830,13 @@ gitlab:assets:compile:
SKIP_STORAGE_VALIDATION
:
"
true"
WEBPACK_REPORT
:
"
true"
NO_COMPRESSION
:
"
true"
# we override the max_old_space_size to prevent OOM errors
NODE_OPTIONS
:
--max_old_space_size=3584
script
:
-
date
-
yarn install --frozen-lockfile --production --cache-folder .yarn-cache
-
date
-
free -m
-
bundle exec rake gitlab:assets:compile
artifacts
:
name
:
webpack-report
...
...
config/webpack.config.js
View file @
0f0baaee
const
fs
=
require
(
'
fs
'
);
const
path
=
require
(
'
path
'
);
const
glob
=
require
(
'
glob
'
);
const
webpack
=
require
(
'
webpack
'
);
...
...
@@ -232,9 +231,7 @@ module.exports = {
new
VueLoaderPlugin
(),
// automatically configure monaco editor web workers
new
MonacoWebpackPlugin
({
features
:
[],
}),
new
MonacoWebpackPlugin
(),
// prevent pikaday from including moment.js
new
webpack
.
IgnorePlugin
(
/moment/
,
/pikaday/
),
...
...
@@ -302,7 +299,7 @@ module.exports = {
inline
:
DEV_SERVER_LIVERELOAD
,
},
devtool
:
IS_PRODUCTION
?
'
nosources-
source-map
'
:
'
cheap-module-eval-source-map
'
,
devtool
:
IS_PRODUCTION
?
'
source-map
'
:
'
cheap-module-eval-source-map
'
,
// sqljs requires fs
node
:
{
fs
:
'
empty
'
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment