From bff8f04ed47e70e9c9e22b6897dbfced4265b696 Mon Sep 17 00:00:00 2001 From: Ryan Weaver Date: Thu, 3 Dec 2020 10:24:03 -0500 Subject: [PATCH] adding docs related to disabling the css extraction and the dev-server --- index.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/index.js b/index.js index 821a4218..95aa9cc1 100644 --- a/index.js +++ b/index.js @@ -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