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:
1
test/config/fixtures/invalid-array.js
Normal file
1
test/config/fixtures/invalid-array.js
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = [];
|
Reference in New Issue
Block a user