gpt4 book ai didi

javascript - SharePoint Online - Javascript 捆绑

转载 作者:行者123 更新时间:2023-11-28 04:53:44 24 4
gpt4 key购买 nike

我的应用程序是使用 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

最佳答案

但是,在使用 SharePoint 框架时,我们可以选择是否要将依赖项与 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",

关于javascript - SharePoint Online - Javascript 捆绑,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42712139/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com