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-uiv1.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.