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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
9c6109db
Commit
9c6109db
authored
May 30, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip asset compression in CI
parent
94ed0656
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
.gitlab-ci.yml
.gitlab-ci.yml
+1
-0
config/webpack.config.js
config/webpack.config.js
+9
-3
No files found.
.gitlab-ci.yml
View file @
9c6109db
...
...
@@ -430,6 +430,7 @@ gitlab:assets:compile:
USE_DB
:
"
false"
SKIP_STORAGE_VALIDATION
:
"
true"
WEBPACK_REPORT
:
"
true"
NO_COMPRESSION
:
"
true"
script
:
-
yarn install --pure-lockfile --production --cache-folder .yarn-cache
-
bundle exec rake gitlab:assets:compile
...
...
config/webpack.config.js
View file @
9c6109db
...
...
@@ -16,6 +16,7 @@ var DEV_SERVER_HOST = process.env.DEV_SERVER_HOST || 'localhost';
var
DEV_SERVER_PORT
=
parseInt
(
process
.
env
.
DEV_SERVER_PORT
,
10
)
||
3808
;
var
DEV_SERVER_LIVERELOAD
=
process
.
env
.
DEV_SERVER_LIVERELOAD
!==
'
false
'
;
var
WEBPACK_REPORT
=
process
.
env
.
WEBPACK_REPORT
;
var
NO_COMPRESSION
=
process
.
env
.
NO_COMPRESSION
;
var
config
=
{
// because sqljs requires fs.
...
...
@@ -222,11 +223,16 @@ if (IS_PRODUCTION) {
}),
new
webpack
.
DefinePlugin
({
'
process.env
'
:
{
NODE_ENV
:
JSON
.
stringify
(
'
production
'
)
}
}),
})
);
if
(
!
NO_COMPRESSION
)
{
config
.
plugins
.
push
(
new
CompressionPlugin
({
asset
:
'
[path].gz[query]
'
,
})
);
}
}
if
(
IS_DEV_SERVER
)
{
...
...
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