We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c49b5da commit 254be6bCopy full SHA for 254be6b
lib/loader.js
@@ -38,19 +38,22 @@ module.exports = function(content, map) {
38
resolve: loaderContext.resolve
39
};
40
41
+ const from =
42
+ "/css-loader!" +
43
+ loaderUtils
44
+ .getRemainingRequest(loaderContext)
45
+ .split("!")
46
+ .pop();
47
+ const to = loaderUtils
48
+ .getCurrentRequest(loaderContext)
49
50
51
+
52
postcss([plugin(parserOptions)])
53
.process(content, {
54
// we need a prefix to avoid path rewriting of PostCSS
- from:
- "/css-loader!" +
- loaderUtils
- .getRemainingRequest(loaderContext)
- .split("!")
- .pop(),
- to: loaderUtils
- .getCurrentRequest(loaderContext)
55
+ from,
56
+ to,
57
map: sourceMap
58
? {
59
prev: map,
0 commit comments