我有一个项目,我试图通过NPM加载我的JS依赖项而不是使用CDN,一切都很顺利,直到我点击jquery-dotdotdot
包显然它取决于jQuery
而在我的我正在加载jquery
它有效地再次加载jQuery并忽略我已经在我的项目上设置的那个...我需要它在我的app.js文件中这样
require('jquery-dotdotdot');
这是我得到的警告
WARNING in ./~/jquery/dist/jquery.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* /Users/username/Webserver/proj-name/node_modules/jQuery/dist/jquery.js
Used by 1 module(s), i. e.
/Users/username/Webserver/proj-name/node_modules/jquery-dotdotdot/src/jquery.dotdotdot.min.umd.js
* /Users/username/Webserver/proj-name/node_modules/jquery/dist/jquery.js
Used by 4 module(s), i. e.
/Users/username/Webserver/proj-name/node_modules/buble-loader/index.js!/Users/jonnyserra/Webserver/zona-astro/resources/assets/frontend/js/frontend.js