Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhance: Enable terser parallelism in WSL #1710

Merged
merged 1 commit into from
Oct 19, 2022
Merged

enhance: Enable terser parallelism in WSL #1710

merged 1 commit into from
Oct 19, 2022

Conversation

ntucker
Copy link
Owner

@ntucker ntucker commented Oct 17, 2022

webpack-contrib/terser-webpack-plugin#21 has long been fixed so disabling is not necessary.

Now 6s full production build:

assets by path *.js 704 KiB
  assets by chunk 264 KiB (id hint: vendors)
    asset 690-0d86d44ea3431adc.chunk.js 90 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
    asset 224-978f26359dba3628.chunk.js 55.3 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
    asset 126-13d3e8ed527e1961.chunk.js 39.9 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
    asset 163-3d0dd12cf508907f.chunk.js 33.7 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
    asset 65-951551524311aa7d.chunk.js 19.6 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
    asset 160-30ce08321aea8374.chunk.js 17.8 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
    asset 267-e8a493d62ead3f6b.chunk.js 7.55 KiB [emitted] [immutable] [minimized] (id hint: vendors) 1 related asset
  + 14 assets
assets by path *.css 533 KiB
  asset App.f0d504709ef8e717.css 532 KiB [emitted] [immutable] [minimized] [big] (name: App) 1 related asset
  asset PostDetail.89d86759639da0fb.css 166 bytes [emitted] [immutable] [minimized] (name: PostDetail) 1 related asset
asset manifest.json 115 KiB [emitted]
asset index.html 516 bytes [emitted]
Entrypoint App [big] 961 KiB (3.29 MiB) = webpack-runtime-09dac7328ea316b3.js 5.04 KiB polyfill-b2642ed2f41ed961.js 13.8 KiB react-1ae4f2c329035f00.js 138 KiB App.f0d504709ef8e717.css 532 KiB App-3d9bded10dfde490.js 271 KiB 5 auxiliary assets
orphan modules 6.79 MiB (javascript) 3.7 KiB (runtime) [orphan] 2605 modules
runtime modules 11.9 KiB 17 modules
built modules 1.93 MiB (javascript) 654 KiB (css/mini-extract) [built]
  modules by path ../../node_modules/ 1.74 MiB (javascript) 654 KiB (css/mini-extract) 170 modules
  modules by path ./src/ 182 KiB (javascript) 615 bytes (css/mini-extract)
    javascript modules 182 KiB 20 modules
    css modules 615 bytes
      css ../../node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[1]!../../node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[7].oneOf[1].use[2]!../../node_modules/@linaria/webpack5-loader/lib/outputCssLoader.js?cacheProvider=!./src/app/App.tsx 101 bytes [built] [code generated]
      + 2 modules
  modules by path ../../packages/ 11.5 KiB
    modules by path ../../packages/core/lib/ 3.81 KiB 7 modules
    modules by path ../../packages/router/src/ 4.68 KiB 6 modules
    modules by path ../../packages/pojo-router/src/ 3 KiB
      modules by path ../../packages/pojo-router/src/*.ts 1.77 KiB 2 modules
      modules by path ../../packages/pojo-router/src/*.tsx 1.23 KiB 2 modules

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  App.f0d504709ef8e717.css (532 KiB)
  App-3d9bded10dfde490.js (271 KiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (293 KiB). This can impact web performance.
Entrypoints:
  App (961 KiB)
      webpack-runtime-09dac7328ea316b3.js
      polyfill-b2642ed2f41ed961.js
      react-1ae4f2c329035f00.js
      App.f0d504709ef8e717.css
      App-3d9bded10dfde490.js


webpack 5.74.0 compiled with 2 warnings in 6663 ms

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2022

Size Change: 0 B

Total Size: 436 kB

ℹ️ View Unchanged
Filename Size
examples/typescript/dist/App.css 67.9 kB
examples/typescript/dist/App.js 58.4 kB
examples/typescript/dist/Error-index-tsx.chunk.js 234 B
examples/typescript/dist/GQL-index-tsx.chunk.js 1.23 kB
examples/typescript/dist/Home-__tests__-home-test-tsx.chunk.js 316 B
examples/typescript/dist/Home-__tests__-home-test-tsx.css 271 B
examples/typescript/dist/Home-index-tsx.css 263 B
examples/typescript/dist/index.html 272 B
examples/typescript/dist/Issues-index-tsx.chunk.js 3.73 kB
examples/typescript/dist/my.worker.js 158 B
examples/typescript/dist/polyfill.js 4.59 kB
examples/typescript/dist/Posts-__tests__-postList-test-tsx.chunk.js 1.74 kB
examples/typescript/dist/Posts-index-tsx.chunk.js 1.96 kB
examples/typescript/dist/Posts-PostCreate-tsx.chunk.js 2.08 kB
examples/typescript/dist/Posts-PostEdit-tsx.chunk.js 1.91 kB
examples/typescript/dist/Posts-PostForm-tsx.chunk.js 4.18 kB
examples/typescript/dist/Posts-PostListItem-tsx.chunk.js 1.6 kB
examples/typescript/dist/Posts-useForm-tsx.chunk.js 315 B
examples/typescript/dist/react.js 46.7 kB
examples/typescript/dist/redbox.chunk.js 10.7 kB
examples/typescript/dist/router.js 11.4 kB
examples/typescript/dist/Slow-index-tsx.chunk.js 410 B
examples/typescript/dist/src_pages_Home_index_tsx.chunk.js 4.84 kB
examples/typescript/dist/User-index-tsx.chunk.js 1.64 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_CloseCircleFilled_js-node_modules_antd_es__uti-d0009e.chunk.js 17.1 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_DownOutlined_js-node_modules_ant-design_icons_-02fb57.chunk.js 5.07 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_EditOutlined_js-node_modules_rest-hooks_core_l-5128ef.chunk.js 1.88 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_InfoCircleOutlined_js-node_modules_ant-design_-564c9d.chunk.js 3.77 kB
examples/typescript/dist/vendors-node_modules_ant-design_icons_es_icons_PlusOutlined_js-node_modules_rest-hooks_test_l-36be3a.chunk.js 2.13 kB
examples/typescript/dist/vendors-node_modules_antd_es_button_index_js.chunk.js 3.78 kB
examples/typescript/dist/vendors-node_modules_antd_es_form_index_js-node_modules_antd_es_input_index_js.chunk.js 9.9 kB
examples/typescript/dist/vendors-node_modules_antd_es_input_TextArea_js.chunk.js 6.48 kB
examples/typescript/dist/vendors-node_modules_antd_es_list_index_js-node_modules_rest-hooks_core_lib_react-integration-b683c0.chunk.js 28.4 kB
examples/typescript/dist/vendors-node_modules_antd_es_page-header_index_js.chunk.js 6.13 kB
examples/typescript/dist/vendors-node_modules_antd_es_typography_index_js.chunk.js 6.49 kB
examples/typescript/dist/vendors-node_modules_moment_locale_af_js-node_modules_moment_locale_ar-dz_js-node_modules_mom-8b2111.chunk.js 80.3 kB
examples/typescript/dist/vendors-node_modules_path_path_js-node_modules_worker-loader_dist_runtime_inline_js.chunk.js 4.64 kB
examples/typescript/dist/vendors-node_modules_process_browser_js-node_modules_rest-hooks_rest_lib_createResource_js.chunk.js 3.57 kB
examples/typescript/dist/vendors-node_modules_react-test-renderer_index_js.chunk.js 26.4 kB
examples/typescript/dist/vendors-node_modules_rest-hooks_endpoint_lib_endpoint_js-node_modules_rest-hooks_endpoint_lib-866236.chunk.js 1.57 kB
examples/typescript/dist/webpack-runtime.js 1.92 kB

compressed-size-action

@ntucker ntucker force-pushed the terser-wsl branch 2 times, most recently from d330673 to e85be50 Compare October 19, 2022 19:31
@sonarcloud
Copy link

sonarcloud bot commented Oct 19, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@ntucker ntucker merged commit ff8a730 into master Oct 19, 2022
@ntucker ntucker deleted the terser-wsl branch October 19, 2022 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant