File tree 3 files changed +3
-1
lines changed
3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 12
12
window . VERDACCIO_API_URL = '<%= htmlWebpackPlugin.options.verdaccioURL %>/-/verdaccio/' ;
13
13
window . VERDACCIO_SCOPE = '<%= htmlWebpackPlugin.options.scope %>' ;
14
14
window . VERDACCIO_LOGO = '<%= htmlWebpackPlugin.options.logo %>' ;
15
+ window . VERDACCIO_PRIMARY_COLOR = '<%= htmlWebpackPlugin.options.primary_color %>' ;
15
16
window . VERDACCIO_VERSION = '<%= htmlWebpackPlugin.options.version_app %>' ;
16
17
</ script >
17
18
</ head >
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const colors = {
30
30
// Main colors
31
31
// -------------------------
32
32
33
- primary : '#4b5e40' ,
33
+ primary : window . VERDACCIO_PRIMARY_COLOR || '#4b5e40' ,
34
34
secondary : '#20232a' ,
35
35
36
36
} ;
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const prodConf = {
47
47
title : 'ToReplaceByTitle' ,
48
48
scope : 'ToReplaceByScope' ,
49
49
logo : 'ToReplaceByLogo' ,
50
+ primary_color : 'ToReplaceByPrimaryColor' ,
50
51
filename : 'index.html' ,
51
52
favicon : `${ env . SRC_ROOT } /webui/template/favicon.ico` ,
52
53
verdaccioURL : 'ToReplaceByVerdaccio' ,
You can’t perform that action at this time.
0 commit comments