Skip to content

Commit

Permalink
Add trailing slash to url because not using baseUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel authored Jul 11, 2020
1 parent 88cdbd5 commit 046c5e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/determine-as-value.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function determineAsValue ({ optionsAs, href }) {
// value based on the suffix of filename.

// We only care about the pathname, so just use any domain when constructing the URL.
const url = new URL(href, 'https://example.com')
const url = new URL(href, 'https://example.com/')
const extension = path.extname(url.pathname)

if (extension === '.css') {
Expand Down

0 comments on commit 046c5e4

Please # to comment.