From b945ff4291dd524511f2c0da182c24eb72a9f81b Mon Sep 17 00:00:00 2001 From: Joachim Viide Date: Mon, 14 Nov 2016 15:24:07 +0200 Subject: [PATCH] Add -loader suffix to loader names This relates to changes in webpack@2.1.0-beta.26. --- webpack.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index b2bc49f..188728e 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -20,7 +20,7 @@ const config = { { test: /\.jsx?$/, exclude: /node_modules/, - loader: "babel", + loader: "babel-loader", query: { presets: [["es2015", {modules: false}], "react"], plugins: ["transform-object-rest-spread"] @@ -30,13 +30,13 @@ const config = { test: /\.s?css$/, loader: ExtractTextPlugin.extract([ { - loader: "css", + loader: "css-loader", query: { minimize: production } }, { - loader: "sass" + loader: "sass-loader" } ]) },