Skip to content

Commit 8551428

Browse files
authored
Merge pull request #515 from p-rk/webpack_progress
Webpack Build progress
2 parents b7a97ea + a77b6bf commit 8551428

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

src/components/ReduxAsyncConnect/ReduxAsyncConnect.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ class ReduxAsyncConnect extends Component {
1010
static propTypes = {
1111
children: PropTypes.node.isRequired,
1212
history: PropTypes.objectOf(PropTypes.any).isRequired,
13-
location: PropTypes.objectOf(PropTypes.any).isRequired
13+
location: PropTypes.objectOf(PropTypes.any).isRequired,
14+
routes: PropTypes.arrayOf(PropTypes.object).isRequired,
15+
store: PropTypes.objectOf(PropTypes.any).isRequired,
16+
helpers: PropTypes.objectOf(PropTypes.any).isRequired
1417
};
1518

1619
state = {

src/containers/About/About.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { provideHooks } from 'redial';
44
import MiniInfoBar from 'components/MiniInfoBar/MiniInfoBar';
55
import { isLoaded as isInfoLoaded, load as loadInfo } from 'redux/modules/info';
66

7+
/* eslint-disable max-len */
78
@provideHooks({
89
fetch: ({ store: { dispatch, getState } }) => !isInfoLoaded(getState()) ? dispatch(loadInfo()).catch(() => null) : Promise.resolve()
910
})

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

0 commit comments

Comments
 (0)