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

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -