Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge postcss-modules config #75

Merged
merged 3 commits into from
Dec 8, 2017
Merged

Merge postcss-modules config #75

merged 3 commits into from
Dec 8, 2017

Conversation

isbasex
Copy link
Contributor

@isbasex isbasex commented Dec 7, 2017

No description provided.

@@ -24,12 +26,16 @@ async function getConfig(asset) {
}

config = config || {};
config.plugins = loadPlugins(config.plugins, asset.name);
const postcssModulesConfig = Object.assign(get(config.plugins, 'postcss-modules') || {}, {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just config.plugins['postcss-modules']?

Copy link
Contributor Author

@isbasex isbasex Dec 7, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@thejameskyle type safety

package.json Outdated
@@ -23,6 +23,8 @@
"htmlnano": "^0.1.6",
"is-url": "^1.2.2",
"js-yaml": "^3.10.0",
"lodash.get": "^4.4.2",
"lodash.omit": "^4.5.0",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather avoid adding more dependencies if we can. omit could just be delete config.plugins['postcss-modules'], and get could be just be config.plugins['postcss-modules'].

@isbasex
Copy link
Contributor Author

isbasex commented Dec 8, 2017

@devongovett Now, just pure js

@devongovett devongovett merged commit 582f8db into parcel-bundler:master Dec 8, 2017
devongovett pushed a commit that referenced this pull request Oct 15, 2018
* Merge postcss-modules config

* Use pure js instead of lodash

* formatting
devongovett pushed a commit that referenced this pull request Oct 15, 2018
* Merge postcss-modules config

* Use pure js instead of lodash

* formatting
AGawrys pushed a commit that referenced this pull request Dec 7, 2020
…75)

Add babel plugin to preload/prefetch import transform attributes into webpack magic comments

Approved-by: Maia Teegarden
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.

3 participants