@@ -13,6 +13,7 @@ const webpack = require('webpack');
13
13
const ExtractTextPlugin = require ( 'extract-text-webpack-plugin' ) ;
14
14
const ManifestPlugin = require ( './webpack/webpack-manifest-plugin' ) ;
15
15
const DeleteUnusedEntriesJSPlugin = require ( './webpack/delete-unused-entries-js-plugin' ) ;
16
+ const AssetsOutputDisplayPlugin = require ( './friendly-errors/asset-output-display-plugin' ) ;
16
17
const loaderFeatures = require ( './loader-features' ) ;
17
18
const CleanWebpackPlugin = require ( 'clean-webpack-plugin' ) ;
18
19
const WebpackChunkHash = require ( 'webpack-chunk-hash' ) ;
@@ -56,8 +57,8 @@ class ConfigGenerator {
56
57
}
57
58
58
59
config . performance = {
59
- // silence performance hints when we're in dev
60
- hints : this . webpackConfig . isProduction ( ) ? 'warning' : false
60
+ // silence performance hints
61
+ hints : false
61
62
} ;
62
63
63
64
config . stats = this . buildStatsConfig ( ) ;
@@ -394,7 +395,7 @@ class ConfigGenerator {
394
395
] ) ;
395
396
}
396
397
397
- plugins . push ( new FriendlyErrorsWebpackPlugin ( {
398
+ const friendlyErrorsPlugin = new FriendlyErrorsWebpackPlugin ( {
398
399
clearConsole : false ,
399
400
additionalTransformers : [
400
401
missingLoaderTransformer ,
@@ -403,8 +404,15 @@ class ConfigGenerator {
403
404
additionalFormatters : [
404
405
missingLoaderFormatter ,
405
406
missingPostCssConfigFormatter
406
- ]
407
- } ) ) ;
407
+ ] ,
408
+ compilationSuccessInfo : {
409
+ messages : [ ]
410
+ }
411
+ } ) ;
412
+ plugins . push ( friendlyErrorsPlugin ) ;
413
+
414
+ const outputPath = this . webpackConfig . outputPath . replace ( this . webpackConfig . getContext ( ) + '/' , '' ) ;
415
+ plugins . push ( new AssetsOutputDisplayPlugin ( outputPath , friendlyErrorsPlugin ) ) ;
408
416
409
417
return plugins ;
410
418
}
0 commit comments