From 63f393eca66720644c1fd5f128ca73f861746094 Mon Sep 17 00:00:00 2001 From: pndewit Date: Wed, 8 Feb 2017 19:09:29 +0100 Subject: [PATCH] fix(index): update syntax to match latest extract-text-webpack-plugin@rc3 (#34) --- package.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 71980fa..91e3d67 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ }, "dependencies": { "css-loader": "^0.26.0", - "extract-text-webpack-plugin": "^2.0.0-beta", + "extract-text-webpack-plugin": "^2.0.0-rc.3", "resolve-url-loader": "^1.6.0", "style-loader": "^0.13.1" }, diff --git a/src/index.ts b/src/index.ts index f6dc8ee..7f42c58 100644 --- a/src/index.ts +++ b/src/index.ts @@ -43,7 +43,7 @@ export = function css({ filename = '[name].css', allChunks = false, sourceMap = rules: get(this, 'module.rules', []).concat([{ test, use: extractCss ? - extractText.extract({ fallbackLoader: loaders[0], loader: loaders.slice(1) }) : + extractText.extract({ fallback: loaders[0], use: loaders.slice(1) }) : loaders }]) },