angular - How to add jquery plugins using webpack? -
i using webpack angular 2 web appllication need add jquery slider app , using jquery plugin .
my webpack config jquery
new provideplugin({        jquery: 'jquery',     $: 'jquery',     jquery: 'jquery'    })    above provideplugin gives $ , jquery on app , need import jquery plugin app
in main.ts include
import 'jquery';   once.
then in webpack config
   new provideplugin({        jquery: 'jquery',       'window.jquery': 'jquery',        $: 'jquery',       'window.$': 'jquery'     })      
Comments
Post a Comment