1
0
mirror of https://github.com/svg/svgo.git synced 2025-08-09 02:22:08 +03:00

Implement loadConfig utility (#1328)

Ref https://github.com/svg/svgo/issues/1327

Config file now can only be js. `svgo.config.js` is searched by default.
Otherwise any js module specified in `--config` cli flag.

Config loader is exposed in entry point as `loadConfig(configFile, cwd)`.
This commit is contained in:
Bogdan Chadkin
2021-02-16 19:11:13 +03:00
committed by GitHub
parent d273b26605
commit a6f14018ee
12 changed files with 142 additions and 29 deletions

View File

@@ -0,0 +1 @@
module.exports = [];