Skip to content

Commit 4bc5b43

Browse files
committed
hide the 'Assets output' message when using the dev-server
1 parent 3cb1de9 commit 4bc5b43

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/config-generator.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const webpack = require('webpack');
1313
const ExtractTextPlugin = require('extract-text-webpack-plugin');
1414
const ManifestPlugin = require('./webpack/webpack-manifest-plugin');
1515
const DeleteUnusedEntriesJSPlugin = require('./webpack/delete-unused-entries-js-plugin');
16-
const AssetsOutputDisplayPlugin = require('./friendly-errors/asset-output-display-plugin');
16+
const AssetOutputDisplayPlugin = require('./friendly-errors/asset-output-display-plugin');
1717
const loaderFeatures = require('./loader-features');
1818
const CleanWebpackPlugin = require('clean-webpack-plugin');
1919
const WebpackChunkHash = require('webpack-chunk-hash');
@@ -410,8 +410,10 @@ class ConfigGenerator {
410410
});
411411
plugins.push(friendlyErrorsPlugin);
412412

413-
const outputPath = this.webpackConfig.outputPath.replace(this.webpackConfig.getContext() + '/', '');
414-
plugins.push(new AssetsOutputDisplayPlugin(outputPath, friendlyErrorsPlugin));
413+
if (!this.webpackConfig.useDevServer()) {
414+
const outputPath = this.webpackConfig.outputPath.replace(this.webpackConfig.getContext() + '/', '');
415+
plugins.push(new AssetOutputDisplayPlugin(outputPath, friendlyErrorsPlugin));
416+
}
415417

416418
if (this.webpackConfig.useDevServer()) {
417419
plugins.push(new webpack.HotModuleReplacementPlugin());

0 commit comments

Comments
 (0)