From be1b1eec0440c4956684fe73756c1e3666cea5e3 Mon Sep 17 00:00:00 2001 From: gaosp <gaosp> Date: 星期二, 16 一月 2024 22:31:30 +0800 Subject: [PATCH] update style --- .postcssrc.js | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/.postcssrc.js b/.postcssrc.js index 18c016f..741a3e4 100644 --- a/.postcssrc.js +++ b/.postcssrc.js @@ -1,3 +1,9 @@ +/* + * @Date: 2019-11-21 14:21:14 + * @LastEditors: Sneed + * @LastEditTime: 2024-01-07 16:16:12 + * @FilePath: /belleson-frontend/Users/mache/Documents/demo/mdc/.postcssrc.js + */ // https://github.com/michael-ciniawsky/postcss-load-config module.exports = { @@ -5,6 +11,12 @@ "postcss-import": {}, "postcss-url": {}, // to edit target browsers: use "browserslist" field in package.json - "autoprefixer": {} + "autoprefixer": {}, + 'postcss-pxtorem': { + rootValue: 19, // 琛ㄧず鏍瑰厓绱犲瓧浣撳ぇ灏忔垨鏍规嵁input鍙傛暟杩斿洖鏍瑰厓绱犲瓧浣撳ぇ灏� + propList: ['*'], // 鍙互浠巔x鏇存敼涓簉em鐨勫睘鎬�, 閫氶厤绗�*琛ㄧず鍚敤鎵�鏈夊睘鎬� + selectorBlackList: ['.norem'], // 杩囨护鎺�.norem寮�澶寸殑class锛屼笉杩涜rem杞崲 + exclude: ['node_modules'] + } } } -- Gitblit v1.9.3