@ives_xxz/packages 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ const Fs = require('fs');
|
|
|
2
2
|
const Path = require('path');
|
|
3
3
|
|
|
4
4
|
/** 配置文件保存目录 */
|
|
5
|
-
const configFileDir = '
|
|
5
|
+
const configFileDir = 'config';
|
|
6
6
|
|
|
7
7
|
/** 配置文件名 */
|
|
8
8
|
const configFileName = 'ccc-png-auto-compress.json';
|
|
@@ -31,6 +31,7 @@ const ConfigManager = {
|
|
|
31
31
|
let config = null;
|
|
32
32
|
if (Fs.existsSync(configFilePath)) {
|
|
33
33
|
config = JSON.parse(Fs.readFileSync(configFilePath, 'utf8'));
|
|
34
|
+
Editor.log(`读取配置文件2:${config}`);
|
|
34
35
|
} else {
|
|
35
36
|
config = { ...defaultConfig };
|
|
36
37
|
}
|