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
61e24884
Commit
61e24884
authored
Dec 04, 2019
by
Tristan Read
Committed by
Mike Greiling
Dec 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include date, commit sha in output
Make fields easier to grep.
parent
4c7be075
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
1 deletion
+23
-1
.gitignore
.gitignore
+1
-0
.gitlab/ci/frontend.gitlab-ci.yml
.gitlab/ci/frontend.gitlab-ci.yml
+5
-1
config/webpack.config.js
config/webpack.config.js
+17
-0
No files found.
.gitignore
View file @
61e24884
...
...
@@ -84,3 +84,4 @@ jsdoc/
.overcommit.yml
.projections.json
/qa/.rakeTasks
webpack-dev-server.json
.gitlab/ci/frontend.gitlab-ci.yml
View file @
61e24884
...
...
@@ -245,5 +245,9 @@ webpack-dev-server:
variables
:
WEBPACK_MEMORY_TEST
:
"
true"
script
:
-
node --version
-
node --expose-gc node_modules/.bin/webpack-dev-server --config config/webpack.config.js
artifacts
:
name
:
webpack-dev-server
expire_in
:
31d
paths
:
-
webpack-dev-server.json
config/webpack.config.js
View file @
61e24884
const
path
=
require
(
'
path
'
);
const
glob
=
require
(
'
glob
'
);
const
fs
=
require
(
'
fs
'
);
const
webpack
=
require
(
'
webpack
'
);
const
VueLoaderPlugin
=
require
(
'
vue-loader/lib/plugin
'
);
const
StatsWriterPlugin
=
require
(
'
webpack-stats-plugin
'
).
StatsWriterPlugin
;
...
...
@@ -23,6 +24,7 @@ const NO_SOURCEMAPS = process.env.NO_SOURCEMAPS;
const
VUE_VERSION
=
require
(
'
vue/package.json
'
).
version
;
const
VUE_LOADER_VERSION
=
require
(
'
vue-loader/package.json
'
).
version
;
const
WEBPACK_VERSION
=
require
(
'
webpack/package.json
'
).
version
;
const
devtool
=
IS_PRODUCTION
?
'
source-map
'
:
'
cheap-module-eval-source-map
'
;
...
...
@@ -359,6 +361,21 @@ module.exports = {
console
.
log
(
`Webpack heap size:
${
toMB
(
memoryUsage
)}
MB`
);
const
webpackStatistics
=
{
memoryUsage
,
date
:
Date
.
now
(),
// milliseconds
commitSHA
:
process
.
env
.
CI_COMMIT_SHA
,
nodeVersion
:
process
.
versions
.
node
,
webpackVersion
:
WEBPACK_VERSION
,
};
console
.
log
(
webpackStatistics
);
fs
.
writeFileSync
(
path
.
join
(
ROOT_PATH
,
'
webpack-dev-server.json
'
),
JSON
.
stringify
(
webpackStatistics
),
);
// exit in case we're running webpack-dev-server
IS_DEV_SERVER
&&
process
.
exit
();
});
...
...
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