If you have used require("jquery-ui") before you need to replace it with separate imports for each widget. I think the new way is better because it will bundle only the code for the widget we need to use.
See documentation on using the 1.12 official npm package.
jquery-ui-dist
并且jquery-ui-bundle
似乎不由jquery-ui团队维护。在jquery-uijquery-ui
v1.12 之后,可以将npm中的官方包与webpack一起使用。通过更新
package.json
和将jquery-ui更新到1.12npm install
。然后,您可以
require
像这样每个小部件。If you have used
require("jquery-ui")
before you need to replace it with separate imports for each widget. I think the new way is better because it will bundle only the code for the widget we need to use.See documentation on using the 1.12 official npm package.