|
@@ -111,3 +111,10 @@ const extraPath =
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
+
|
|
|
+## config.json 配置说明
|
|
|
+
|
|
|
+- 根目录下会有一个`config.sample.json`文件,当需要设置配置参数时,可以复制一份,保存为`config.json`文件。
|
|
|
+- 系统内部预设了一组 config 参数,当根目录`config.json`文件中的参数有缺失时,默认使用预设 config 参数。
|
|
|
+- `input`默认为`/stores/in/`
|
|
|
+- `compressRate`为图片压缩参数,当`compressRate`的值不存在,或者大于 100,或者小于 1 时,默认为 100;实际使用时一般配置 80,此时图片大小会减小约 75%;
|