From 9150c1d1e7cfbc6b6814782aefc7448e7f47123d Mon Sep 17 00:00:00 2001 From: WirelessElephant Date: Mon, 28 Aug 2017 09:48:54 -0500 Subject: [PATCH] Webpack v2 Changes Webpack requires the "-loader" suffix for loader names; removed v2-incompatible configuration. --- docs/faq/installation-karma-jasmine.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/docs/faq/installation-karma-jasmine.md b/docs/faq/installation-karma-jasmine.md index 330ee49..f0e1754 100644 --- a/docs/faq/installation-karma-jasmine.md +++ b/docs/faq/installation-karma-jasmine.md @@ -119,22 +119,24 @@ { test: /\.(js|jsx)$/, exclude: /node_modules/, - loader: 'babel' + loader: 'babel-loader' }, { test: /\.css$/, - loader: 'style!css' + loader: 'style-loader!css' }, { test: /\.json$/, - loader: 'json' + loader: 'json-loader' } ] }, // relative path starts out at the src folder when importing modules - resolve: { - root: path.resolve('./src') - } + // 08/28/2017: create-react-app uses Webpack v2; if using v1, + // uncomment this below. + // resolve: { + // root: path.resolve('./src') + // } }, webpackMiddleware: {