Skip to content

adding docs related to disabling the css extraction and the dev-server #867

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

Merged
merged 1 commit into from
Dec 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1325,6 +1325,14 @@ class Encore {
* into a .css file. All your styles will then be injected
* into the page by your JS code.
*
* This can be useful when using the dev-server with hot
* module reload (so that CSS can benefit from HMR):
*
* ```
* // disable CSS only when using the dev-server
* Encore.disableCssExtraction(Encore.isDevServer())
* ```
*
* Internally, this disables the mini-css-extract-plugin
* and uses the style-loader instead.
* @param {boolean} disabled
Expand Down