From f0b55bf18fa759b162dc9e59310a09bb9729fa2c Mon Sep 17 00:00:00 2001 From: Re-Li-fe Date: Thu, 22 Sep 2022 17:17:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9postcss=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=AD=E7=9A=84exclude=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BD=BF?= =?UTF-8?q?=E5=85=B6=E8=83=BD=E9=80=82=E9=85=8D\\=E5=BD=A2=E5=BC=8F?= =?UTF-8?q?=E7=9A=84=E8=B7=AF=E5=BE=84=E5=88=86=E9=9A=94=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postcss.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/postcss.config.js b/postcss.config.js index 797c012..1c6a0d0 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 } -- GitLab