Skip to content

Commit b96fde2

Browse files
committed
Tech Fix - webpack removed performance hints
1 parent 7c42851 commit b96fde2

File tree

4 files changed

+21
-33
lines changed

4 files changed

+21
-33
lines changed

Readme.md

+13-31
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,13 @@ $ npm run prod
8787
> [email protected] preprod C:\Users\paranganat\Desktop\ReactRedux
8888
> pm2 start src/server/ecosystem.config.js
8989

90-
[PM2] Spawning PM2 daemon with pm2_home=C:\Users\paranganat\.pm2
91-
[PM2] PM2 Successfully daemonized
92-
[PM2][WARN] Applications redux not running, starting...
93-
[PM2] App [redux] launched (1 instances)
94-
┌──────────┬────┬─────────┬───────┬────────┬─────────┬────────┬───────┬───────────┬────────────┬──────────┐
95-
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
96-
├──────────┼────┼─────────┼───────┼────────┼─────────┼────────┼───────┼───────────┼────────────┼──────────┤
97-
│ redux │ 0 │ cluster │ 18624 │ online │ 0 │ 0s │ 18.7% │ 30.9 MB │ paranganat │ enabled │
98-
└──────────┴────┴─────────┴───────┴────────┴─────────┴────────┴───────┴───────────┴────────────┴──────────┘
90+
[PM2] Applying action restartProcessId on app [redux](ids: 0)
91+
[PM2] [redux](0) ✓
92+
┌──────────┬────┬─────────┬──────┬────────┬─────────┬────────┬─────┬───────────┬────────────┬──────────┐
93+
│ App name │ id │ mode │ pid │ status │ restart │ uptime │ cpu │ mem │ user │ watching │
94+
├──────────┼────┼─────────┼──────┼────────┼─────────┼────────┼─────┼───────────┼────────────┼──────────┤
95+
│ redux │ 0 │ cluster │ 7768 │ online │ 4 │ 0s │ 0% │ 29.6 MB │ paranganat │ enabled │
96+
└──────────┴────┴─────────┴──────┴────────┴─────────┴────────┴─────┴───────────┴────────────┴──────────┘
9997
Use `pm2 show <id|name>` to get more details about an app
10098

10199
> [email protected] prod C:\Users\paranganat\Desktop\ReactRedux
@@ -107,8 +105,8 @@ $ npm run prod
107105

108106
Hash: db478f551a9bcb7e7b77
109107
Version: webpack 4.17.0
110-
Time: 8452ms
111-
Built at: 2018-08-24 22:45:15
108+
Time: 6640ms
109+
Built at: 2018-09-03 11:32:04
112110
Asset Size Chunks Chunk Names
113111
lib.bundle.js 349 KiB 0 [emitted] [big] lib
114112
Entrypoint lib [big] = lib.bundle.js
@@ -117,28 +115,12 @@ Entrypoint lib [big] = lib.bundle.js
117115
[241] ./config/library.js 139 bytes {0} [built]
118116
[253] (webpack)/buildin/harmony-module.js 573 bytes {0} [built]
119117
+ 321 hidden modules
120-
121-
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
122-
This can impact web performance.
123-
Assets:
124-
lib.bundle.js (349 KiB)
125-
126-
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
127-
Entrypoints:
128-
lib (349 KiB)
129-
lib.bundle.js
130-
131-
132-
WARNING in webpack performance recommendations:
133-
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
134-
For more info visit https://webpack.js.org/guides/code-splitting/
135118
10% building modules 1/1 modules 0 active
136119
webpack is watching the files…
137-
138-
Hash: 088a67f37012a984bf26
120+
Hash: 088a67f37012a984bf26
139121
Version: webpack 4.17.0
140-
Time: 10197ms
141-
Built at: 2018-08-24 22:45:30
122+
Time: 9172ms
123+
Built at: 2018-09-03 11:32:18
142124
Asset Size Chunks Chunk Names
143125
bundle.js 97.5 KiB 0 [emitted] js
144126
bundle.css 288 bytes 0 [emitted] js
@@ -316,6 +298,7 @@ INFO Selenium process finished.
316298
- [react-redux](https://ghub.io/react-redux): Official React bindings for Redux
317299
- [redux](https://ghub.io/redux): Predictable state container for JavaScript apps
318300
- [redux-saga](https://ghub.io/redux-saga): Saga middleware for Redux to handle Side Effects
301+
- [express](https://ghub.io/express): Fast, unopinionated, minimalist web framework
319302

320303
## Dev Dependencies
321304

@@ -341,7 +324,6 @@ INFO Selenium process finished.
341324
- [eslint-plugin-json](https://ghub.io/eslint-plugin-json): Lint JSON files
342325
- [eslint-plugin-react](https://ghub.io/eslint-plugin-react): React specific linting rules for ESLint
343326
- [expect](https://ghub.io/expect): This package exports the `expect` function used in [Jest](https://jestjs.io/). You can find its documentation [on Jest&#39;s website](https://jestjs.io/docs/en/expect.html).
344-
- [express](https://ghub.io/express): Fast, unopinionated, minimalist web framework
345327
- [extract-text-webpack-plugin](https://ghub.io/extract-text-webpack-plugin): Extract text from bundle into a file.
346328
- [jsdom](https://ghub.io/jsdom): A JavaScript implementation of many web standards
347329
- [jsdom-global](https://ghub.io/jsdom-global): Enable DOM in Node.js

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
"eslint-plugin-json": "^1.2.1",
4444
"eslint-plugin-react": "^7.11.1",
4545
"expect": "^23.5.0",
46-
"express": "^4.16.3",
4746
"extract-text-webpack-plugin": "^4.0.0-beta.0",
4847
"jsdom": "^12.0.0",
4948
"jsdom-global": "^3.0.2",
@@ -70,7 +69,8 @@
7069
"react-dom": "^16.4.2",
7170
"react-redux": "^5.0.7",
7271
"redux": "^4.0.0",
73-
"redux-saga": "^0.16.0"
72+
"redux-saga": "^0.16.0",
73+
"express": "^4.16.3"
7474
},
7575
"nyc": {
7676
"extension": [

webpack.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,7 @@ module.exports = {
5757
}),
5858
],
5959
},
60+
performance: {
61+
hints: false,
62+
},
6063
};

webpack.library.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,7 @@ module.exports = {
3232
resolve: {
3333
modules: ['node_modules'],
3434
},
35+
performance: {
36+
hints: false,
37+
},
3538
};

0 commit comments

Comments
 (0)