File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +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
+ const AssetOutputDisplayPlugin = require ( './friendly-errors/asset-output-display-plugin' ) ;
17
17
const loaderFeatures = require ( './loader-features' ) ;
18
18
const CleanWebpackPlugin = require ( 'clean-webpack-plugin' ) ;
19
19
const WebpackChunkHash = require ( 'webpack-chunk-hash' ) ;
@@ -410,8 +410,10 @@ class ConfigGenerator {
410
410
} ) ;
411
411
plugins . push ( friendlyErrorsPlugin ) ;
412
412
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
+ }
415
417
416
418
return plugins ;
417
419
}
You can’t perform that action at this time.
0 commit comments