From 14254ba52062f731079d2af2b0d400a34390ad8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bazyli=20Brz=C3=B3ska?= Date: Sat, 28 Jan 2017 16:14:50 +0100 Subject: [PATCH] fix(index): update syntax to match latest rc1 --- src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.ts b/src/index.ts index 94b88a2..f6dc8ee 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,7 +30,7 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap = if (extractCss) { extractText = extractTextInstances.get(filename) if (!extractText) { - extractText = new ExtractTextPlugin(extractText instanceof Object ? extractText : { filename, allChunks, sourceMap }) + extractText = new ExtractTextPlugin(extractText instanceof Object ? extractText : { filename, allChunks }) extractTextInstances.set(filename, extractText) } } else { @@ -42,8 +42,8 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap = module: { rules: get(this, 'module.rules', []).concat([{ test, - loaders: extractCss ? - extractText.extract({ notExtractLoader: loaders[0], loader: loaders.slice(1) }) : + use: extractCss ? + extractText.extract({ fallbackLoader: loaders[0], loader: loaders.slice(1) }) : loaders }]) },