diff --git a/postcss.config.js b/postcss.config.js index 797c0124935c1138a3572e1e3749d189fb6345e6..1c6a0d08e6bfe9182bbecc8d111cdb4574187cf6 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -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 }