2017-11-19 7 views
1

서버 렌더링 페이지에는 축소되지 않은 CSS가 포함되어 있고 gzipping없이 제공됩니다. 누구나 재료에 5.0.0-rc0 및 응용 프로그램에 일부 CSS를 포함시킨 다음 정적 서버에서 렌더링 한 페이지 크기가 최소 300kb에 도달 할 때 해결책을 제안 할 수 있습니까?- 유제품 플래그 - 또는 유성 배포 후에도 범용 예에서 각형 유금 CSS 누락이 누락되었습니다.

package.json :

"@angular/animations": "^5.0.0", "@angular/cdk": "^5.0.0-rc0", "@angular/common": "^5.0.0", "@angular/compiler": "^5.0.0", "@angular/core": "^5.0.0", "@angular/forms": "^5.0.0", "@angular/http": "^5.0.0", "@angular/material": "^5.0.0-rc0", "@angular/platform-browser": "^5.0.0", "@angular/platform-browser-dynamic": "^5.0.0", "@angular/platform-server": "^5.0.0", "@angular/router": "^5.0.0", "babel-runtime": "^6.20.0", "meteor-node-stubs": "~0.3.0", "meteor-rxjs": "^0.4.8", "rxjs": "^5.5.0", "zone.js": "^0.8.16"

컴파일러 버전 :

[email protected]_1 [email protected] [email protected] [email protected]_1 [email protected] [email protected]

답변

0

시도 응용 프로그램 소스 파일에서 클라이언트 폴더에 글로벌 스타일 시트 main.scss에 소재 테마 파일을 추가.

+0

답장을 보내 주셔서 감사합니다. 그러나 작동하지 않는다고 후회합니다. ([link] https://foc-promos.herokuapp.com에서 실시간 데모를 참조하십시오. 'main.html ie list '파일 크기는 300kb 이상입니다. –