From 6b4520ac1cb8d40df3aad3989f38f18730da1f3d Mon Sep 17 00:00:00 2001 From: Konstantin Tarkus Date: Mon, 9 Feb 2015 09:27:59 +0300 Subject: [PATCH] Update webpack.config.js - Add `url-loader` for `.svg` files - Fix `jest` preprocessor setting in `package.json` --- package.json | 4 ++-- webpack.config.js | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c5c2df0db..99da7fd3f 100644 --- a/package.json +++ b/package.json @@ -64,8 +64,8 @@ "webpack-dev-server": "^1.7.0" }, "jest": { - "rootDir": "src", - "scriptPreprocessor": "/node_modules/6to5-jest", + "rootDir": "./src", + "scriptPreprocessor": "../node_modules/6to5-jest", "unmockedModulePathPatterns": [ "react" ] diff --git a/webpack.config.js b/webpack.config.js index 8fd1d6bfc..68b96995c 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -84,6 +84,10 @@ var config = { test: /\.png/, loader: 'url-loader?limit=10000&mimetype=image/png' }, + { + test: /\.svg/, + loader: 'url-loader?limit=10000&mimetype=image/svg+xml' + }, { test: /\.jsx?$/, exclude: /node_modules/,