Skip to content

Conversation

jquery-dlya-slabih
Copy link

Update readme for webpack v4+.

What kind of change does this PR introduce?

Readme fix.

Did you add tests for your changes?
Nope.

If relevant, did you update the README?
Exactly.

Summary

Clarify information for current webpack version.

Does this PR introduce a breaking change?
Nope.

Other information

@jsf-clabot
Copy link

jsf-clabot commented Jun 15, 2018

CLA assistant check
All committers have signed the CLA.

README.md Outdated
### Extract

For production builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on. This can be achieved by using the [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) to extract the CSS when running in production mode.
For production builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on. This can be achieved by using the [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) for webpack version to extract the CSS when running in production mode.
Copy link
Member

Choose a reason for hiding this comment

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

Need rewrite this text to using mini-css-extract-plugin and remove mini-css-extract-plugin information from :warning

@alexander-akait
Copy link
Member

Also please accept CLA

@codecov
Copy link

codecov bot commented Jun 17, 2018

Codecov Report

Merging #731 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #731   +/-   ##
=======================================
  Coverage   98.43%   98.43%           
=======================================
  Files          11       11           
  Lines         384      384           
  Branches       90       90           
=======================================
  Hits          378      378           
  Misses          6        6

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1703721...a778766. Read the comment docs.

@jquery-dlya-slabih
Copy link
Author

@evilebottnawi review fixed, CLA accepted.

README.md Outdated

For production builds it's recommended to extract the CSS from your bundle being able to use parallel loading of CSS/JS resources later on. This can be achieved by using the [extract-text-webpack-plugin](https://github.com/webpack-contrib/extract-text-webpack-plugin) for webpack version to extract the CSS when running in production mode.

> :warning: Since `webpack >= 4.0.0` the `extract-text-webpack-plugin` should not be used for css. Use [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) instead.
Copy link
Member

Choose a reason for hiding this comment

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

Return warning, many people still use ETWP for css, thanks for PR!

@jquery-dlya-slabih
Copy link
Author

@evilebottnawi may I set to warning information about ETWP? And let example about mini-css as is?

@alexander-akait
Copy link
Member

@DenRedsky yep, only warning about ETWP for webpack@4

@jquery-dlya-slabih
Copy link
Author

jquery-dlya-slabih commented Jun 19, 2018

Will fix it soon

@jquery-dlya-slabih
Copy link
Author

@evilebottnawi done, hope it's ok :)

@michael-ciniawsky michael-ciniawsky changed the title Update readme for webpack 4 docs(readme): update extract CSS example Aug 7, 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.

@DenRedsky Thx

@michael-ciniawsky
Copy link
Member

@DenRedsky Please rebase your PR against latest master when you have the time :)

@michael-ciniawsky michael-ciniawsky modified the milestones: 2.0.0, 1.0.1 Aug 7, 2018
@alexander-akait
Copy link
Member

Done in master, thanks for the PR

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.

4 participants