diff options
author | Marcia Ramos <virtua.creative@gmail.com> | 2017-04-11 20:01:39 +0000 |
---|---|---|
committer | Marcia Ramos <virtua.creative@gmail.com> | 2017-04-11 20:01:39 +0000 |
commit | 40991fc3ce55bbfa87b6ed56515dcceb1e0e8dae (patch) | |
tree | fdcaa7a99418411f3ef333106bd2d77879e007d7 /config/webpack.config.js | |
parent | 85cfde8332d9d5d3280fcb0b9de8d56de2d29ed4 (diff) | |
parent | 069c54a7d7a1d1d6ec1dc48c4212139eff6735df (diff) | |
download | gitlab-ce-docs-topic-auth.tar.gz |
fix conflictdocs-topic-auth
Diffstat (limited to 'config/webpack.config.js')
-rw-r--r-- | config/webpack.config.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/webpack.config.js b/config/webpack.config.js index 873c7b1d4ef..0fea3f8222b 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -6,6 +6,7 @@ var webpack = require('webpack'); var StatsPlugin = require('stats-webpack-plugin'); var CompressionPlugin = require('compression-webpack-plugin'); var BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin; +var WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); var ROOT_PATH = path.resolve(__dirname, '..'); var IS_PRODUCTION = process.env.NODE_ENV === 'production'; @@ -187,6 +188,10 @@ if (IS_DEV_SERVER) { inline: DEV_SERVER_LIVERELOAD }; config.output.publicPath = '//localhost:' + DEV_SERVER_PORT + config.output.publicPath; + config.plugins.push( + // watch node_modules for changes if we encounter a missing module compile error + new WatchMissingNodeModulesPlugin(path.join(ROOT_PATH, 'node_modules')) + ); } if (WEBPACK_REPORT) { |