BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide 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
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:
...
@@ -430,6 +430,7 @@ gitlab:assets:compile:
USE_DB
:
"
false"
USE_DB
:
"
false"
SKIP_STORAGE_VALIDATION
:
"
true"
SKIP_STORAGE_VALIDATION
:
"
true"
WEBPACK_REPORT
:
"
true"
WEBPACK_REPORT
:
"
true"
NO_COMPRESSION
:
"
true"
script
:
script
:
-
yarn install --pure-lockfile --production --cache-folder .yarn-cache
-
yarn install --pure-lockfile --production --cache-folder .yarn-cache
-
bundle exec rake gitlab:assets:compile
-
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';
...
@@ -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_PORT
=
parseInt
(
process
.
env
.
DEV_SERVER_PORT
,
10
)
||
3808
;
var
DEV_SERVER_LIVERELOAD
=
process
.
env
.
DEV_SERVER_LIVERELOAD
!==
'false'
;
var
DEV_SERVER_LIVERELOAD
=
process
.
env
.
DEV_SERVER_LIVERELOAD
!==
'false'
;
var
WEBPACK_REPORT
=
process
.
env
.
WEBPACK_REPORT
;
var
WEBPACK_REPORT
=
process
.
env
.
WEBPACK_REPORT
;
var
NO_COMPRESSION
=
process
.
env
.
NO_COMPRESSION
;
var
config
=
{
var
config
=
{
// because sqljs requires fs.
// because sqljs requires fs.
...
@@ -222,11 +223,16 @@ if (IS_PRODUCTION) {
...
@@ -222,11 +223,16 @@ if (IS_PRODUCTION) {
}),
}),
new
webpack
.
DefinePlugin
({
new
webpack
.
DefinePlugin
({
'process.env'
:
{
NODE_ENV
:
JSON
.
stringify
(
'production'
)
}
'process.env'
:
{
NODE_ENV
:
JSON
.
stringify
(
'production'
)
}
}),
new
CompressionPlugin
({
asset
:
'[path].gz[query]'
,
})
})
);
);
if
(
!
NO_COMPRESSION
)
{
config
.
plugins
.
push
(
new
CompressionPlugin
({
asset
:
'[path].gz[query]'
,
})
);
}
}
}
if
(
IS_DEV_SERVER
)
{
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