Comparing version 5.0.6 to 5.0.7
@@ -12,4 +12,6 @@ "use strict"; | ||
var _cosmiconfig = require("cosmiconfig"); | ||
var _yaml = _interopRequireDefault(require("yaml")); | ||
var _lilconfig = require("lilconfig"); | ||
var _isResolvable = _interopRequireDefault(require("is-resolvable")); | ||
@@ -70,3 +72,3 @@ | ||
* cssnano will look for configuration firstly as options passed | ||
* directly to it, and failing this it will use cosmiconfig to | ||
* directly to it, and failing this it will use lilconfig to | ||
* load an external file. | ||
@@ -89,3 +91,9 @@ */ | ||
const configExplorer = (0, _cosmiconfig.cosmiconfigSync)(cssnano); | ||
const configExplorer = (0, _lilconfig.lilconfigSync)(cssnano, { | ||
searchPlaces: ['package.json', '.cssnanorc', '.cssnanorc.json', '.cssnanorc.yaml', '.cssnanorc.yml', '.cssnanorc.js', 'cssnano.config.js'], | ||
loaders: { | ||
'.yaml': (filepath, content) => _yaml.default.parse(content), | ||
'.yml': (filepath, content) => _yaml.default.parse(content) | ||
} | ||
}); | ||
const config = configPath ? configExplorer.load(configPath) : configExplorer.search(searchPath); | ||
@@ -92,0 +100,0 @@ |
{ | ||
"name": "cssnano", | ||
"version": "5.0.6", | ||
"version": "5.0.7", | ||
"description": "A modular minifier, built on top of the PostCSS ecosystem.", | ||
@@ -27,5 +27,6 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"cosmiconfig": "^7.0.0", | ||
"cssnano-preset-default": "^5.1.3", | ||
"is-resolvable": "^1.1.0" | ||
"is-resolvable": "^1.1.0", | ||
"lilconfig": "^2.0.3", | ||
"yaml": "^1.10.2" | ||
}, | ||
@@ -58,3 +59,3 @@ "homepage": "https://github.com/cssnano/cssnano", | ||
}, | ||
"gitHead": "39b4cc089e8825d308df1fa8a7313d38d8f1f2f7" | ||
"gitHead": "fdb6a8fb922bcb3e857f1fdc341488736af37013" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8042
152
5
+ Addedlilconfig@^2.0.3
+ Addedyaml@^1.10.2
+ Addedlilconfig@2.1.0(transitive)
- Removedcosmiconfig@^7.0.0
- Removed@babel/code-frame@7.26.2(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@types/parse-json@4.0.2(transitive)
- Removedcallsites@3.1.0(transitive)
- Removedcosmiconfig@7.1.0(transitive)
- Removederror-ex@1.3.2(transitive)
- Removedimport-fresh@3.3.0(transitive)
- Removedis-arrayish@0.2.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedjson-parse-even-better-errors@2.3.1(transitive)
- Removedlines-and-columns@1.2.4(transitive)
- Removedparent-module@1.0.1(transitive)
- Removedparse-json@5.2.0(transitive)
- Removedpath-type@4.0.0(transitive)
- Removedresolve-from@4.0.0(transitive)