&:before {
content: '•\A•\A•';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
font-size: 12px;
margin-top: 0;
white-space: pre;
line-height: 6px;
}
在浏览器中查看被转义成了这样
可能是什么原因?
webpack配置
{
test: /\.less$/,
include: [
pathLib.resolve(ROOT_PATH, 'node_modules/antd'),
SOURCE_PATH
],
use: ExtractTextPlugin.extract({
use: [
{
loader: 'css-loader',
options: {
minimize: isMinimize,
sourceMap: isSourceMap
}
},
'postcss-loader',
{
loader: 'less-loader',
options: {
sourceMap: isSourceMap,
modifyVars: config.theme || {}
}
}
],
fallback: 'style-loader'
})