Merge branch 'webpack-switch-to-production' into 'master'
Build assets generated by webpack in production mode See merge request ruby-team/gitlab!5
This commit is contained in:
commit
32d5daa771
1 changed files with 2 additions and 1 deletions
3
debian/rake-tasks.sh
vendored
3
debian/rake-tasks.sh
vendored
|
@ -49,4 +49,5 @@ runuser -u ${gitlab_user} -- sh -c 'cd /usr/share/gitlab/public/assets && \
|
|||
|
||||
echo "Webpacking..."
|
||||
# Workaround for webpack crashing with nodejs 10 - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956211
|
||||
runuser -u ${gitlab_user} -- sh -c 'NODE_OPTIONS="--max-old-space-size=2048" webpack --config config/webpack.config.js'
|
||||
# Build assets in production mode - https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=956508
|
||||
runuser -u ${gitlab_user} -- sh -c 'NODE_ENV="production" NODE_OPTIONS="--max-old-space-size=4096" webpack --config config/webpack.config.js'
|
||||
|
|
Loading…
Reference in a new issue