yi-ge / amis-admin-webpack

AMis Admin webpack template.
0 stars 0 forks source link

[performance]webpack assets file size is too large #1

Open giscafer opened 3 years ago

giscafer commented 3 years ago
Use Ctrl+C to close it
ℹ 「wdm」: assets by path *.js 122 MiB
  assets by chunk 51.3 MiB (id hint: vendors) 41 assets
assets by info 992 KiB [immutable]
  assets by path *.ttf 225 KiB
    asset 1e59d2330b4c6deb84b340635ed36249.ttf 162 KiB [emitted] [immutable] [from: node_modules/font-awesome/fonts/fontawesome-webfont.ttf] (auxiliary name: app)
    asset 74d8acf8740a672d680194959e476053.ttf 63.6 KiB [emitted] [immutable] [from: node_modules/monaco-editor/esm/vs/base/browser/ui/codicons/codicon/codicon.ttf] (auxiliary id hint: vendors)
  asset c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg 434 KiB [emitted] [immutable] [from: node_modules/font-awesome/fonts/fontawesome-webfont.svg] (auxiliary name: app)
  asset 8b43027f47b20503057dfbbaa9401fef.eot 162 KiB [emitted] [immutable] [from: node_modules/font-awesome/fonts/fontawesome-webfont.eot] (auxiliary name: app)
  asset f691f37e57f04c152e2315ab7dbad881.woff 95.7 KiB [emitted] [immutable] [from: node_modules/font-awesome/fonts/fontawesome-webfont.woff] (auxiliary name: app)
  asset 20fd1704ea223900efa9fd4e869efb08.woff2 75.4 KiB [emitted] [immutable] [from: node_modules/font-awesome/fonts/fontawesome-webfont.woff2] (auxiliary name: app)
asset index.html 427 bytes [emitted]
runtime modules 11.9 KiB 39 modules
modules by path ./node_modules/ 39.2 MiB 3108 modules
modules by path ./routes/ 44.2 KiB 11 modules
modules by path ./stores/*.ts 4.85 KiB 3 modules
modules by path ./*.tsx 3.63 KiB 2 modules
modules by path ./utils/*.tsx 1.55 KiB
  ./utils/polyfill.tsx 845 bytes [built] [code generated]
  ./utils/schema2component.tsx 746 bytes [built] [code generated]
modules by path ./stylus/*.scss 5.13 KiB
  ./stylus/style.scss 392 bytes [built] [code generated]
  ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/lib/loader.js!./stylus/style.scss 4.75 KiB [built] [code generated]
modules by path ./components/*.tsx 10.2 KiB
  ./components/AMisRenderer.tsx 7.75 KiB [built] [code generated]
  ./components/UserInfo.tsx 2.42 KiB [built] [code generated]
./util.inspect (ignored) 15 bytes [built] [code generated]
webpack 5.33.2 compiled successfully in 64232 ms
ℹ 「wdm」: Compiled successfully.

「wdm」: assets by path *.js 122 MiBmodules by path ./node_modules/ 39.2 MiB 3108 modules 过大,本地开发热更新较慢,无法满足修改实时热更新需求。开发体验较差

image

yi-ge commented 3 years ago

@giscafer 我是fork的,README.md有说明,由于改动太多,我单独独立的项目。准备弃坑了。