Skip to content

Commit a77b6bf

Browse files
Rama KrishnaRama Krishna
authored andcommitted
adding webpack progress plugin in both prod and dev config
removing plugin from dev-server
1 parent c8b5f80 commit a77b6bf

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

webpack/dev.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ const webpackConfig = {
128128
// new webpack.LoaderOptionsPlugin({
129129
// }),
130130

131+
/* wepack build status - show webpack build progress in terminal */
132+
new webpack.ProgressPlugin(),
133+
131134
// hot reload
132135
new webpack.HotModuleReplacementPlugin(),
133136

webpack/prod.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,9 @@ module.exports = {
169169
extensions: ['.json', '.js', '.jsx']
170170
},
171171
plugins: [
172+
/* wepack build status - show webpack build progress in terminal */
173+
new webpack.ProgressPlugin(),
174+
172175
new CleanPlugin([assetsPath], { root: projectRootPath }),
173176

174177
// css files from the extract-text-plugin loader

webpack/webpack-dev-server.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ const serverOptions = {
2222

2323
const app = express();
2424

25-
// show webpack build progress in terminal
26-
compiler.apply(new webpack.ProgressPlugin());
27-
2825
app.use(require('webpack-dev-middleware')(compiler, serverOptions));
2926
app.use(require('webpack-hot-middleware')(compiler));
3027

0 commit comments

Comments
 (0)