Skip to content

Commit

Permalink
fix: windows path for experiments.css (#2049)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-a-n-a authored Jun 2, 2023
1 parent 6968b38 commit f3f45df
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/pitcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,13 @@ export const pitch = function () {
return typeof loader === 'string' ? loader : loader.request
})
.join('!')
return `@import "${context.resourcePath}${
query.lang ? `.${query.lang}` : ''
}${context.resourceQuery}!=!-!${loaderString}!${context.resource}";`
const styleRequest = stringifyRequest(
context,
`${context.resourcePath}${query.lang ? `.${query.lang}` : ''}${
context.resourceQuery
}!=!-!${loaderString}!${context.resource}`
)
return `@import ${styleRequest};`
}
const cssLoaderIndex = loaders.findIndex(isCSSLoader)
if (cssLoaderIndex > -1) {
Expand Down

0 comments on commit f3f45df

Please sign in to comment.