optimize: 优化代码: ♻️ 添加postcss.config.js注释;修改package.json名字信息
This commit is contained in:
parent
f33aa6c9d8
commit
38b80d96ed
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "vue_ts_pina",
|
"name": "lookbroad-rem",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -2,5 +2,12 @@ const autoprefixer = require('autoprefixer');
|
||||||
const px2rem = require('postcss-pxtorem');
|
const px2rem = require('postcss-pxtorem');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
plugins: [autoprefixer(), px2rem({ rootValue: 80, unitPrecision: 5, propList: ['*'] })],
|
plugins: [
|
||||||
|
autoprefixer(),
|
||||||
|
px2rem({
|
||||||
|
rootValue: 80, // 根字体大小
|
||||||
|
unitPrecision: 3, // 小数点位数
|
||||||
|
propList: ['*'],
|
||||||
|
}),
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue