【发布时间】:2021-06-24 15:36:19
【问题描述】:
我想知道在我的 ApostropheCMS 项目中添加 jQuery-ui 的最佳方式是什么。现在我的资产中有一个缩小的 jquery-ui 文件,我以这种方式推送资产:
self.pushAsset('script', 'jquery-ui.min');
它有效,但我不喜欢这个解决方案,因为我的 js 文件很大。有一个更好的方法吗?我注意到在 apostorphe repo 中有这个文件,但我不确定我是否可以以某种方式使用它 https://github.com/apostrophecms/apostrophe/blob/main/lib/modules/apostrophe-assets/public/js/vendor/jquery-ui.js
【问题讨论】:
标签: jquery jquery-ui apostrophe-cms