feat: browser history is aware of basename (#45)

* feat: browser history is aware of basename

* test: fix ui options global object

* chore: fix comment
This commit is contained in:
Juan Picado @jotadeveloper
2019-05-04 12:13:29 +02:00
committed by GitHub
parent c3eac3d27b
commit a89f363115
6 changed files with 18 additions and 1 deletions

View File

@@ -9,6 +9,8 @@
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.verdaccioURL %>/-/static/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script>
window.__VERDACCIO_BASENAME_UI_OPTIONS = JSON.parse('<%= htmlWebpackPlugin.options.__UI_OPTIONS %>');
window.VERDACCIO_BASENAME = '<%= htmlWebpackPlugin.options.basename %>';
window.VERDACCIO_API_URL = '<%= htmlWebpackPlugin.options.verdaccioURL %>/-/verdaccio/';
window.VERDACCIO_SCOPE = '<%= htmlWebpackPlugin.options.scope %>';
window.VERDACCIO_LOGO = '<%= htmlWebpackPlugin.options.logo %>';