Webpack loader for Fonts

While I was learning React with Webpack, I wanted to try with real time example. Hence I was implementing a Bootstrap temulate using React. There are more font awesome fonts used in Bootstrap. I was having difficulty of including in my Webpack builder. Tried googling around, and the solution which I’ve got is like this:

In the above code I’m using url-loader and file-loader. The problem is the font-awesome fonts are rendered as, for instance fontawesome.woff2?v=4.3.

If you see, there is a query string after the font file name. That was causing me an issue while building using webpack. It always throws an error, that my loader for the module is not found. I fixed it by using as follows: