提交 f0b55bf1 编写于 作者: Re_-Life's avatar Re_-Life

修改postcss设置中的exclude配置,使其能适配\\形式的路径分隔符

上级 9e2b6ab2
......@@ -11,11 +11,11 @@ module.exports = {
replace: true, // 这个真不知到干嘛用的。有知道的告诉我一下
mediaQuery: false, // 媒体查询( @media screen 之类的)中不生效
exclude: function (file) {
if (file.indexOf('components/element-ui') !== -1) { // elementui
if (file.indexOf('components\\element-ui') !== -1 || file.indexOf('components/element-ui') !== -1) { // elementui
return true
} else if (file.indexOf('view/pc') !== -1) {
} else if (file.indexOf('view\\pc') !== -1 || file.indexOf('view/pc') !== -1) {
return true
}
}
return false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册