Skip to content

Commit

Permalink
fix: windows path for experiments.css
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehan committed Sep 27, 2023
1 parent 860b660 commit 832073e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/loaders/pitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,14 @@ module.exports.pitch = function (remainingRequest) {
return typeof loader === 'string' ? loader : loader.request
})
.join('!')
return `@import "${this.resourcePath}${
query.lang ? `.${query.lang}` : ''
}${this.resourceQuery}!=!-!${loaderString}!${this.resourcePath + this.resourceQuery}";`

const styleRequest = loaderUtils.stringifyRequest(
this,
`${this.resourcePath}${query.lang ? `.${query.lang}` : ''}${
this.resourceQuery
}!=!-!${loaderString}!${this.resourcePath + this.resourceQuery}`
)
return `@import ${styleRequest};`
}

const cssLoaderIndex = loaders.findIndex(isCSSLoader)
Expand Down

0 comments on commit 832073e

Please sign in to comment.