Skip to content

Commit d8d8edc

Browse files
committed
feat(options): added option to disableAsync loading of CSS
1 parent 0bacfac commit d8d8edc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,8 @@ class MiniCssExtractPlugin {
304304
mainTemplate.hooks.requireEnsure.tap(
305305
pluginName,
306306
(source, chunk, hash) => {
307+
if (this.options.disableAsync) return null;
308+
307309
const chunkMap = this.getCssChunkObject(chunk);
308310

309311
if (Object.keys(chunkMap).length > 0) {

0 commit comments

Comments
 (0)