jQuery not loading in Webpack 2 -


i trying include jquery part of webpack 2 build, , whatever reason unless add <script> tag in index.html doesn't seem recognized.

i have done

require('jquery')  

in files require and

new webpack.provideplugin({   jquery: 'jquery',   $: 'jquery',   jquery: 'jquery' }) 

in webpack.config.js

as

loaders: [ { test: require.resolve('jquery'), loader: 'expose-loader?jquery!expose-loader?$' } ] 

i can see in webpack build

bundle.js  2.76 mb       0  [emitted]  [big]  main [2] ./~/lodash/index.js 408 kb {0} [built] [8] ./~/jquery/dist/jquery.js 268 kb {0} [built] 

but unless declare in index.html doesn't seem recognize it. missing?


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -