From 31538efa698b854c28aa56a9fc5dad78d29d0db0 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sun, 6 Nov 2016 15:58:38 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=BF=D0=BB=D0=B0=D0=B3=D0=B8=D0=BD=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B4=D0=B5=D1=82=D0=B5=D0=BA=D1=82=D0=B0=20=D1=86?= =?UTF-8?q?=D0=B8=D0=BA=D0=BB=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D1=85=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + webpack.config.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index c7bb99d..d586638 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "babel-preset-stage-0": "^6.3.13", "babel-runtime": "^6.0.0", "bundle-loader": "^0.5.4", + "circular-dependency-plugin": "^2.0.0", "css-loader": "^0.23.0", "enzyme": "^2.2.0", "eslint": "^3.1.1", diff --git a/webpack.config.js b/webpack.config.js index 2fa1959..d0a4a70 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,6 +6,7 @@ const webpack = require('webpack'); const loaderUtils = require('loader-utils'); const ExtractTextPlugin = require('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); +const CircularDependencyPlugin = require('circular-dependency-plugin'); const cssUrl = require('webpack-utils/cssUrl'); const cssImport = require('postcss-import'); @@ -247,7 +248,11 @@ if (isProduction) { if (!isProduction && !isTest) { webpackConfig.plugins.push( new webpack.HotModuleReplacementPlugin(), - new webpack.NoErrorsPlugin() + new webpack.NoErrorsPlugin(), + new CircularDependencyPlugin({ + exclude: /node_modules/, + failOnError: false + }) ); if (config.apiHost) {