From 20e4fc45d195316c00c03dcc9628e30c670281d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=80=81=E6=9D=BF=E4=B8=8D=E5=B7=AE=E9=92=B1?= <30830569@qq.com> Date: Mon, 9 May 2022 01:49:33 +0000 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20postcss.?= =?UTF-8?q?config.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- postcss.config.js | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 postcss.config.js diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index d76bd59..0000000 --- a/postcss.config.js +++ /dev/null @@ -1,29 +0,0 @@ -const path = require('path') -module.exports = { - parser: require('postcss-comment'), - plugins: [ - require('postcss-windicss-postcss7')({}), - require('postcss-import')({ - resolve (id, basedir, importOptions) { - if (id.startsWith('/')) { - return path.resolve(process.env.UNI_INPUT_DIR, id.substr(3)) - } else if (id.startsWith('@/')) { - return path.resolve(process.env.UNI_INPUT_DIR, id.substr(2)) - } else if (id.startsWith('/') && !id.startsWith('//')) { - return path.resolve(process.env.UNI_INPUT_DIR, id.substr(1)) - } - return id - } - }), - require('autoprefixer')({ - remove: process.env.UNI_PLATFORM !== 'h5' - }), - require('@dcloudio/vue-cli-plugin-uni/packages/postcss'), - // require('postcss-class-rename')({ - // [process.env.UNI_PLATFORM === 'mp-weixin' ? ':not\\\(\\\[hidden\\\]\\\)\\\s~\\\s:not\\\(\\\[hidden\\\]\\\)' : '不可能匹配的字符']: 'view + view', // 支持 space-x-4 语法 - // '\\\\:': '_', // 变体写法 focus_bg-primary - // '\\\\/': '_', // 数值百分号 w-1_2 - // '\\\\.': '__', // 小数点写法 w-1__5 - // }) - ] -}