Добавлен плагин для детекта циклических зависимостей

This commit is contained in:
ErickSkrauch 2016-11-06 15:58:38 +03:00
parent ffef508862
commit 31538efa69
2 changed files with 7 additions and 1 deletions

View File

@ -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",

View File

@ -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) {