角度流星css缩小在通用示例中缺失 - 生产标志甚至在流星展开之后

时间:2017-11-19 09:04:02

标签: angular-meteor angular-universal

服务器呈现的页面包含非缩小的css,并且在没有gzipping的情况下提供。任何人都可以建议一个解决方案,以满足这一点,因为当我在应用程序中包含材料5.0.0-rc0和我的一些css时,静态服务器呈现的页面大小至少达到300kb。

的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"

编译器版本:

angular-compilers@0.2.8_1 angular-html-compiler@0.2.8 angular-scss-compiler@0.2.8 angular-typescript-compiler@0.2.8_1 babel-compiler@6.24.7 babel-runtime@1.1.1

1 个答案:

答案 0 :(得分:0)

尝试将材质主题文件添加到应用程序源文件的客户端文件夹中的全局样式表main.scss。