只包含我需要的Angular Material的模块 [英] Only include modules from Angular Material that I need

查看:171
本文介绍了只包含我需要的Angular Material的模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Angular Material中的模块$ mdDialog,但我不需要完整的库。是否可能只包含我在项目中需要的模块,以及我该怎么做?我已经在我的项目中安装了Angular Material with Bower并使用了Gulp。

解决方案

很快,Angular Material将变成 v1.1.0 作为主要版本。



作为 material-tools 资源库将被公布。



材料工具允许开发人员使用最必要的组件构建自定义的Angular Material构建。 b
$ b

它还可以构建预编译的主题样式表,从而显着提高性能。



材料工具已经可用,但仍处于测试阶段。 $ b



< blockquote>

I'm using the module $mdDialog from Angular Material but I don't need the full library. Is it possible to only include the modules that I need in the project, and how can I do that? I have installed Angular Material with Bower and using Gulp in my project.

解决方案

Soon Angular Material will turn into v1.1.0 as a major release.

As an addition the material-tools repository will be announced.

Material Tools allows developers to build a custom Angular Material build with the most necessary components.

It also can build precompiled theme stylesheets, which improves the performance significantly.

Material Tools is already available, but still in beta.

https://github.com/angular/material-tools

这篇关于只包含我需要的Angular Material的模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆