This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+15
View File
@@ -2,6 +2,21 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
## [2.1.2](https://github.com/michael-ciniawsky/postcss-load-config/compare/v2.1.1...v2.1.2) (2020-09-26)
### Bug Fixes
* **package:** Add funding links.
## [2.1.1](https://github.com/michael-ciniawsky/postcss-load-config/compare/v2.1.0...v2.1.1) (2020-09-17)
### Bug Fixes
* **plugins:** fix PostCSS 8 plugin support ([#177](https://github.com/michael-ciniawsky/postcss-load-config/issues/202))
## [2.1.0](https://github.com/michael-ciniawsky/postcss-load-config/compare/v2.0.0...v2.1.0) (2019-06-10)
+1 -1
View File
@@ -33,7 +33,7 @@ Then create a postcss config file by choosing one of the following formats
### `package.json`
Create a **`postcss`** section in your projects **`package.json`**
Create a **`postcss`** section in your project's **`package.json`**
```
Project (Root)
+19 -33
View File
@@ -1,38 +1,38 @@
{
"_args": [
[
"postcss-load-config@2.1.0",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"postcss-load-config@2.1.2",
"/home/node/nuxt"
]
],
"_from": "postcss-load-config@2.1.0",
"_id": "postcss-load-config@2.1.0",
"_from": "postcss-load-config@2.1.2",
"_id": "postcss-load-config@2.1.2",
"_inBundle": false,
"_integrity": "sha512-4pV3JJVPLd5+RueiVVB+gFOAa7GWc25XQcMp86Zexzke69mKf6Nx9LRcQywdz7yZI9n1udOxmLuAwTBypypF8Q==",
"_integrity": "sha512-/rDeGV6vMUo3mwJZmeHfEDvwnTKKqQ0S7OHUi/kJvvtx3aWtyWG2/0ZWnzCt2keEclwN6Tf0DST2v9kITdOKYw==",
"_location": "/postcss-load-config",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "postcss-load-config@2.1.0",
"raw": "postcss-load-config@2.1.2",
"name": "postcss-load-config",
"escapedName": "postcss-load-config",
"rawSpec": "2.1.0",
"rawSpec": "2.1.2",
"saveSpec": null,
"fetchSpec": "2.1.0"
"fetchSpec": "2.1.2"
},
"_requiredBy": [
"/postcss-loader"
],
"_resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.0.tgz",
"_spec": "2.1.0",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-2.1.2.tgz",
"_spec": "2.1.2",
"_where": "/home/node/nuxt",
"author": {
"name": "Michael Ciniawky",
"email": "michael.ciniawsky@gmail.com"
},
"bugs": {
"url": "https://github.com/michael-ciniawsky/postcss-load-config/issues"
"url": "https://github.com/postcss/postcss-load-config/issues"
},
"contributors": [
{
@@ -53,24 +53,17 @@
"import-cwd": "^2.0.0"
},
"description": "Autoload Config for PostCSS",
"devDependencies": {
"cssnano": "^4.0.0",
"jest": "^24.0.0",
"jsdoc-to-markdown": "^5.0.0",
"postcss": "^7.0.0",
"postcss-import": "^12.0.0",
"postcss-nested": "^4.0.0",
"standard": "^12.0.0",
"standard-version": "6.0.0",
"sugarss": "^2.0.0"
},
"engines": {
"node": ">= 4"
},
"files": [
"src"
],
"homepage": "https://github.com/michael-ciniawsky/postcss-load-config#readme",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/postcss/"
},
"homepage": "https://github.com/postcss/postcss-load-config#readme",
"keywords": [
"postcss",
"postcssrc",
@@ -81,14 +74,7 @@
"name": "postcss-load-config",
"repository": {
"type": "git",
"url": "git+https://github.com/michael-ciniawsky/postcss-load-config.git"
"url": "git+https://github.com/postcss/postcss-load-config.git"
},
"scripts": {
"clean": "npx rimraf ./coverage",
"docs": "jsdoc2md src/*.js > DOCS.md",
"lint": "standard --env jest",
"release": "standard-version",
"test": "jest --verbose --coverage"
},
"version": "2.1.0"
"version": "2.1.2"
}
+1 -1
View File
@@ -122,7 +122,7 @@ rc.sync = (ctx, path, options) => {
* @license MIT
*
* @module postcss-load-config
* @version 2.0.0
* @version 2.1.0
*
* @requires comsiconfig
* @requires ./options
+11 -6
View File
@@ -56,18 +56,23 @@ const plugins = (config, file) => {
if (plugins.length && plugins.length > 0) {
plugins.forEach((plugin, i) => {
if (plugin.postcss) {
plugin = plugin.postcss
}
if (plugin.default) {
plugin = plugin.default
}
if (plugin.postcss === true) {
plugin = plugin()
} else if (plugin.postcss) {
plugin = plugin.postcss
}
if (
// eslint-disable-next-line
!(typeof plugin === 'object' && Array.isArray(plugin.plugins) ||
typeof plugin === 'function')
!(
(typeof plugin === 'object' && Array.isArray(plugin.plugins)) ||
(typeof plugin === 'object' && plugin.postcssPlugin) ||
(typeof plugin === 'function')
)
) {
throw new TypeError(`Invalid PostCSS Plugin found at: plugins[${i}]\n\n(@${file})`)
}