0

I have installed webpack locally and I'm uploading the bundle.js on server and I call it using script tag from server's index.html. Doing this the bundle.js is not able to call jquery module inside the bundle itself. So my doubt is do i need to install webpack on server so that my bundle.js works properly.

Help is super ultra highly appreciated

iamsaksham
  • 2,879
  • 4
  • 26
  • 50

1 Answers1

2

You don't need to install Webpack on your server. However libraries like jQuery are handled differently when using them with Webpack.

Since I don't know what your Webpack config looks like, I can only guess that you may need to use a strategy like the one answered in this question

Community
  • 1
  • 1
Sean Larkin
  • 6,290
  • 1
  • 28
  • 43
  • Yeah, actually i'm getting error because jQuery is also used. Anyway i got a heads up with your answer. I'll share my webpack.config too – iamsaksham Apr 10 '16 at 02:47