Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/webpack/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 无网页包装。背景图像问题_Css_Webpack_Less - Fatal编程技术网

Css 无网页包装。背景图像问题

Css 无网页包装。背景图像问题,css,webpack,less,Css,Webpack,Less,您好,我看到很少有论坛讨论这个问题,有很多建议,但不是一个明确的解决方案,至少有一个解释。我在网页包中使用较少的加载程序加载背景图像时遇到问题 `publicPath: './bin/'` `loader: extractLESS.extract('css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!less')` 问题是,如果我检查类,我会得到未解析的路径,就像在更少的文件中

您好,我看到很少有论坛讨论这个问题,有很多建议,但不是一个明确的解决方案,至少有一个解释。我在网页包中使用较少的加载程序加载背景图像时遇到问题

`publicPath: './bin/'`
`loader: extractLESS.extract('css?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]!less')`
问题是,如果我检查类,我会得到未解析的路径,就像在更少的文件中键入的路径一样

`.secondComponent__imagen___2-dKX {
        color: black;
        background-image: url(/rock.png);
}`

提前感谢。

使用LESS函数转换图像会阻止它使用path


背景图像:数据uri('image/jpeg;base64','./rock.jpg')

生成此输出的CSS的源代码是什么?