-
-
Notifications
You must be signed in to change notification settings - Fork 384
docs(readme): add media-query-splitting-plugin
(Media Query Plugin)
#269
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 media-query-splitting-plugin
(Media Query Plugin)
#269
Conversation
Added short note about media-query-splitting-plugin
Contributor License Agreement signed |
media-query-splitting-plugin
(Media Query Plugin)
README.md
Outdated
@@ -276,6 +276,8 @@ For long term caching use `filename: "[contenthash].css"`. Optionally add `[name | |||
|
|||
If you'd like to extract the media queries from the extracted CSS (so mobile users don't need to load desktop specific CSS anymore) you should use the [media-query-plugin](https://github.com/SassNinja/media-query-plugin). It will take over the filename option of the mini-css-extract-plugin and recognize its generated CSS chunks. | |||
|
|||
Or you can use [media-query-splitting-plugin](https://github.com/mike-diamond/media-query-splitting-plugin), it will handle mobile, tablet and desktop styles splitting for each CSS chunk in your bundle without any configuration, just add it to the webpack plugins. |
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.
Please make the description more generic e.g
- you should use the [media-query-plugin](https://github.com/SassNinja/media-query-plugin) ...
+ you should use one of the following plugins ...
and make a list for the plugins instead
... its generated CSS chunks.
- [Media Query Plugin](media-query-plugin)
- [Media Query Splitting Plugin](media-query-splitting-plugin)
[media-query-plugin]: https://github.com/SassNinja/media-query-plugin
[media-query-splitting-plugin]: https://github.com/mike-diamond/media-query-splitting-plugin
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.
Fixed
Update after review
README.md
Outdated
@@ -274,9 +274,10 @@ For long term caching use `filename: "[contenthash].css"`. Optionally add `[name | |||
|
|||
### Media Query Plugin | |||
|
|||
If you'd like to extract the media queries from the extracted CSS (so mobile users don't need to load desktop specific CSS anymore) you should use the [media-query-plugin](https://github.com/SassNinja/media-query-plugin). It will take over the filename option of the mini-css-extract-plugin and recognize its generated CSS chunks. | |||
If you'd like to extract the media queries from the extracted CSS (so mobile users don't need to load desktop or tablet specific CSS anymore) you should use one of the the following plugins: |
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.
- the the following plugins
+ the following plugins
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.
Oh, my bad
Typo fix after review
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.
@mike-diamond Thx
Added short note about media-query-splitting-plugin
This PR contains a:
Motivation / Use-Case
Breaking Changes
Additional Info