DevExtreme 使用哪个包? npm 还是 nuGet?
which package to use for DevExtreme? npm or nuGet?
我想在 vs2017 中使用 angular 的 DevExtreme。
根据 DevExtreme 文档,有两个选项可以使用它:
- npm package
- NuGet package
那么该用哪一个??为什么??
我在 visual studio 2017 年使用 Angular7。
which package to use for DevExtreme? npm or nuGet?
您可以使用这两个选项中的任何一个。个人建议大家使用npm
。
那是因为 不鼓励 css/javascript 库使用 NuGet,并且 DevExtreme 文档还说:
We recommend using the DevExtreme npm package
instead if you are
developing a modular application
使用nuget时,还有一些额外的手动操作:
After installing the NuGet package, you need to link the DevExtreme
stylesheets and scripts. Open your index page and add the links to the
tag as shown in the Local Scripts article.
而 NuGet 包 仅包含 dx.viz.js
、dx.web.js
和 dx.viz-web.js
。
所以,个人建议大家使用npm
。
希望这对您有所帮助。
我想在 vs2017 中使用 angular 的 DevExtreme。
根据 DevExtreme 文档,有两个选项可以使用它:
- npm package
- NuGet package
那么该用哪一个??为什么??
我在 visual studio 2017 年使用 Angular7。
which package to use for DevExtreme? npm or nuGet?
您可以使用这两个选项中的任何一个。个人建议大家使用npm
。
那是因为 不鼓励 css/javascript 库使用 NuGet,并且 DevExtreme 文档还说:
We recommend using the
DevExtreme npm package
instead if you are developing a modular application
使用nuget时,还有一些额外的手动操作:
After installing the NuGet package, you need to link the DevExtreme stylesheets and scripts. Open your index page and add the links to the tag as shown in the Local Scripts article.
而 NuGet 包 仅包含 dx.viz.js
、dx.web.js
和 dx.viz-web.js
。
所以,个人建议大家使用npm
。
希望这对您有所帮助。