Skip to content

Possibility to use .postcssrc.json as PostCSS config file#2115

Merged
devongovett merged 1 commit into
parcel-bundler:masterfrom
nckcol:master
Oct 6, 2018
Merged

Possibility to use .postcssrc.json as PostCSS config file#2115
devongovett merged 1 commit into
parcel-bundler:masterfrom
nckcol:master

Conversation

@nckcol

@nckcol nckcol commented Oct 6, 2018

Copy link
Copy Markdown
Contributor

↪️ Pull Request

I find defining PostCSS config in .postcssrc.json more consistent with another config files like .eslintrc.json and .babelrc.json. I prefer this way of naming because of transparency and conformity between the filename and content type.

Also, postcss-load-config package, which is widely using with PostCSS, supports this way of defining configs and enforces this naming as recommended.

I think adding .postcssrc.json to resolvable configs makes parcel more smooth to switch from another bundler without much effort 🙂

I didn't find any tests for PostCSS config files, so I'm not sure if I should add ones for this feature 😕

@devongovett devongovett merged commit db91bd4 into parcel-bundler:master Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants