SharePoint Online - Javascript捆绑

时间:2017-03-10 06:54:45

标签: javascript sharepoint

我的应用程序使用SharePoint Online托管。为了提高性能,实现了JavaScript捆绑。问题是,捆绑了与应用程序相关的JavaScript文件,但需要捆绑与SharePoint相关的JavaScript文件。我们在SharePoint Online中有任何选项。

SharePoint Online相关JavaScript文件的示例列表

/_layouts/15/16.0.6223.1208/sp.ui.dialog.js
/_layouts/15/16.0.6223.1208/sp.taxonomy.js
/_layouts/15/16.0.6223.1208/sp.search.js
/_layouts/15/16.0.6223.1208/sp.userprofiles.js

1 个答案:

答案 0 :(得分:0)

使用SharePoint Framework时,我们可以选择是否要将依赖项与Web部件捆绑在一起。

查看优秀的Link

“@ microsoft / sp-client-base”:“node_modules/@microsoft/sp-client-base/dist/sp-client-base.js”,     “@ microsoft / sp-client-preview”:“node_modules/@microsoft/sp-client-preview/dist/sp-client-preview.js”,     “@ microsoft / sp-lodash-subset”:“node_modules/@microsoft/sp-lodash-subset/dist/sp-lodash-subset.js”,     “office-ui-fabric-react”:“node_modules / office-ui-fabric-react / dist / office-ui-fabric-react.js”,