如何在本地安装带有奖励插件的 GSAP?
我已经完成了安装步骤。我尝试了各种方法,但无法在HTML文件中运行它。即使我在“ node_modules”部分中抛出“ GSAP”文件,并使用< script>标签,它不起作用。
这就是我在html文件中称为“ all.js”的方式。也尝试了所有其他方法。
<script src="src/all.js"></script>
<script src="app.js"></script>
我想在我的项目中使用本地所有插件。
I have done the installation steps. I tried every way but I can't run it in HTML file. Even if I throw the "gsap" file in the "node_modules" section and call it with the <script> tag, it doesn't work.
This is how I call "all.js" in HTML file. Tried all other ways too.
<script src="src/all.js"></script>
<script src="app.js"></script>
I want to use all plugins locally in my project.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,我解决了。需要编写“min.js”文件,而不是直接编写“all.js”文件。
Okay, I solved it. It is necessary to write the "min.js" files, not the "all.js" file directly.