Description
Documentation Is:
- Missing
- Needed
- Confusing
- Not Sure?
Please Explain in Detail...
The documentation says:
This plugin should be used only on production builds without style-loader in the loaders chain, especially if you want to have HMR in development
The first part:
This plugin should be used only on production builds without style-loader in the loaders chain
seems to suggest that this plugin should not be used in development builds, only in production builds and that too without style-loader. Is that understanding correct?
The second part:
especially if you want to have HMR in development
seems to suggest that the plugin can be used in development and can also enable HMR.
But if it can be used in development, is style-loader still a problem? Why does it say especially and talk about development, while the previous statement is about production?
This is quite confusing.
Your Proposal for Changes
If the plugin can also be used in development, and if should always be used without style loader, then the first part may be better written as:
This plugin should be used only on builds without style-loader in the loaders chain