optimize: 优化代码: ♻️ 添加postcss.config.js注释;修改package.json名字信息

This commit is contained in:
bunny 2024-02-27 21:18:32 +08:00
parent f33aa6c9d8
commit 38b80d96ed
2 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"name": "vue_ts_pina",
"name": "lookbroad-rem",
"version": "0.1.0",
"private": true,
"scripts": {

View File

@ -2,5 +2,12 @@ const autoprefixer = require('autoprefixer');
const px2rem = require('postcss-pxtorem');
module.exports = {
plugins: [autoprefixer(), px2rem({ rootValue: 80, unitPrecision: 5, propList: ['*'] })],
plugins: [
autoprefixer(),
px2rem({
rootValue: 80, // 根字体大小
unitPrecision: 3, // 小数点位数
propList: ['*'],
}),
],
};