This repository was archived by the owner on Jan 16, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed
Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 1212 window . VERDACCIO_API_URL = '<%= htmlWebpackPlugin.options.verdaccioURL %>/-/verdaccio/' ;
1313 window . VERDACCIO_SCOPE = '<%= htmlWebpackPlugin.options.scope %>' ;
1414 window . VERDACCIO_LOGO = '<%= htmlWebpackPlugin.options.logo %>' ;
15+ window . VERDACCIO_PRIMARY_COLOR = '<%= htmlWebpackPlugin.options.primary_color %>' ;
1516 window . VERDACCIO_VERSION = '<%= htmlWebpackPlugin.options.version_app %>' ;
1617 </ script >
1718</ head >
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ const colors = {
3030 // Main colors
3131 // -------------------------
3232
33- primary : '#4b5e40' ,
33+ primary : window . VERDACCIO_PRIMARY_COLOR || '#4b5e40' ,
3434 secondary : '#20232a' ,
3535
3636} ;
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const prodConf = {
4747 title : 'ToReplaceByTitle' ,
4848 scope : 'ToReplaceByScope' ,
4949 logo : 'ToReplaceByLogo' ,
50+ primary_color : 'ToReplaceByPrimaryColor' ,
5051 filename : 'index.html' ,
5152 favicon : `${ env . SRC_ROOT } /webui/template/favicon.ico` ,
5253 verdaccioURL : 'ToReplaceByVerdaccio' ,
You can’t perform that action at this time.
0 commit comments