We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05f8d22 commit 1e10c88Copy full SHA for 1e10c88
lib/loader.js
@@ -10,6 +10,12 @@ var getImportPrefix = require("./getImportPrefix");
10
11
12
module.exports = function(content, map) {
13
+ // ワークアラウンド
14
+ // postcss-spritesに各コンポーネント用のsprite.pngを渡す方法がわからない
15
+ if (content.match(/url\(client\/images\/sprite\.png\)/)) {
16
+ content = content.replace(/url\(client\/images\/sprite\.png\)/g, 'url(../../images/sprite.png)');
17
+ }
18
+
19
if(this.cacheable) this.cacheable();
20
var callback = this.async();
21
var query = loaderUtils.parseQuery(this.query);
0 commit comments