How does webpack introduce jquery-weui and use it?

jquery-weui document only introduces it is recommended to get the code: npm install jquery-weui through npm

so how do you reference and use it in webpack?


I haven't used it like this, but you can try it this way.
1. Install jq and jq-weui
2. The page to be used:
import $from 'jquery'
import' jquery-weui/dist/js/jquery-weui.min';

if jq reports an error window.$ = $

Menu