Skip to content

Commit

Permalink
fix(browser): prevent compression of the bookshop browser javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Feb 22, 2022
1 parent 3fb6e7b commit ba132d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hugo/v2/core/bookshop_component_browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<script src="http://localhost:{{ $port }}/bookshop.js"></script>
{{- else -}}
<div data-bookshop-browser=""></div>
<script src="/_bookshop/bookshop-browser.js"></script>
<script class="cms-no-rewrite" src="/_bookshop/bookshop-browser.js?cb={{ now.UnixMilli }}"></script>
{{- end -}}
<script>
window.bookshopBrowser = new window.BookshopBrowser({globals: []});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Feature: Hugo Bookshop Component Browser Granular Steps
* stdout should contain "Total in"
* site/public/index.html should contain each row:
| text |
| <script src="/_bookshop/bookshop-browser.js"></script> |
| <script class="cms-no-rewrite" src="/_bookshop/bookshop-browser.js?cb= |

Scenario: Bookshop Generate hydrates component browser
Given I run "hugo" in the site directory
Expand Down

0 comments on commit ba132d9

Please sign in to comment.