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

docs(README): add autoprefixing example #380

Merged
merged 3 commits into from
Aug 4, 2018

Conversation

halfzebra
Copy link
Contributor

@halfzebra halfzebra commented Aug 3, 2018

A follow-up PR to #379

Type

  • Docs

SemVer

  • Bug (:label: Patch)

Issues

  • None

Checklist

  • Lint and unit tests pass with my changes
  • I have added tests that prove my fix is effective/works
  • I have added necessary documentation (if appropriate)
  • Any dependent changes are merged and published in downstream modules

Copy link
Member

@michael-ciniawsky michael-ciniawsky left a 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.
Copy link
Member

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},
Copy link
Member

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 :)

Copy link
Contributor Author

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']

@michael-ciniawsky michael-ciniawsky self-assigned this Aug 4, 2018
@michael-ciniawsky michael-ciniawsky added this to the 2.2.0 milestone Aug 4, 2018
@michael-ciniawsky michael-ciniawsky changed the title Added the Autoprefixinf example to the REAMDE.md docs(README): add autoprefixing example Aug 4, 2018
Copy link
Member

@michael-ciniawsky michael-ciniawsky left a comment

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants