We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd9152 commit bff8f04Copy full SHA for bff8f04
index.js
@@ -1325,6 +1325,14 @@ class Encore {
1325
* into a .css file. All your styles will then be injected
1326
* into the page by your JS code.
1327
*
1328
+ * This can be useful when using the dev-server with hot
1329
+ * module reload (so that CSS can benefit from HMR):
1330
+ *
1331
+ * ```
1332
+ * // disable CSS only when using the dev-server
1333
+ * Encore.disableCssExtraction(Encore.isDevServer())
1334
1335
1336
* Internally, this disables the mini-css-extract-plugin
1337
* and uses the style-loader instead.
1338
* @param {boolean} disabled
0 commit comments