我应该如何在 plunker 中包含 kendo-theme-bootstrap 的 css 文件?
How shoud I include css file of kendo-theme-bootstrap in plunker?
在plunker, I could include css file of kendo-theme-default from here。
现在我想包含 css 文件 kendo-theme-bootstrap.
也许我从 https://unpkg.com
中包含了它,但我不知道该怎么做。
For npm package authors, unpkg relieves the burden of publishing your code to a CDN in addition to the npm registry. All you need to do is include your UMD build in your npm package (not your repo, that's different!).
You can do this easily using the following setup:
- Add the umd (or dist) directory to your .gitignore file
- Add the umd directory to your files array in package.json
- Use a build script to generate your UMD build in the umd directory when you publish
That's it! Now when you npm publish you'll have a version available on unpkg as well.
这段话对我来说有点难懂。
谁能解释一下?
是的,可以从 unpkg
中包含主题——就像 npm 包中的任何文件一样。默认和 Bootstrap 主题的正确路径是:
https://unpkg.com/@telerik/kendo-theme-default/dist/all.css
https://unpkg.com/@telerik/kendo-theme-bootstrap/dist/all.css
您可能希望将它们锁定到特定版本,否则您将始终获得最新版本(如果主题获得新的主要版本,其中可能包含重大更改。
在plunker, I could include css file of kendo-theme-default from here。 现在我想包含 css 文件 kendo-theme-bootstrap.
也许我从 https://unpkg.com
中包含了它,但我不知道该怎么做。
For npm package authors, unpkg relieves the burden of publishing your code to a CDN in addition to the npm registry. All you need to do is include your UMD build in your npm package (not your repo, that's different!).
You can do this easily using the following setup:
- Add the umd (or dist) directory to your .gitignore file
- Add the umd directory to your files array in package.json
- Use a build script to generate your UMD build in the umd directory when you publishThat's it! Now when you npm publish you'll have a version available on unpkg as well.
这段话对我来说有点难懂。 谁能解释一下?
是的,可以从 unpkg
中包含主题——就像 npm 包中的任何文件一样。默认和 Bootstrap 主题的正确路径是:
https://unpkg.com/@telerik/kendo-theme-default/dist/all.css
https://unpkg.com/@telerik/kendo-theme-bootstrap/dist/all.css
您可能希望将它们锁定到特定版本,否则您将始终获得最新版本(如果主题获得新的主要版本,其中可能包含重大更改。