-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
docs(README): add autoprefixing example #380
Conversation
…-preset-env, because it already includes autoprefixer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx in advance
README.md
Outdated
} | ||
``` | ||
|
||
> :warning: [`postcss-preset-env`](https://github.com/csstools/postcss-preset-env/issues) includes autoprefixer, so adding it is not necessary if you use the preset. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Drop the
/issues
fragment from the link please - Maybe also link to the autoprefixer repo similiar to how it's done for
postcss-preset-env
Optional
- , so adding it ...
+ , so adding it **separately** ... you **already** use the ...
@@ -192,9 +192,8 @@ module.exports = ({ file, options, env }) => ({ | |||
options: { | |||
config: { | |||
ctx: { | |||
cssnext: {...options}, | |||
'postcss-preset-env': {...options}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using 'postcss-preset-env'
as the key here conflicts with the usage in the config file (options.presetEnv
) above, one would have to access it via bracket notation options['postcss-preset-env']
instead of dot notation (options.presetEnv
) as currently used. Either rename the key in webpack.config.js
or use bracket notation in postcss.confg.js
aswell :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks for the feedback! I have addressed it by renaming the options.presetEnv -> options['postcss-preset-env']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@halfzebra Thx
A follow-up PR to #379
Type
SemVer
Issues
Checklist