RD17 / react-trumbowyg

React wrapper for lightweight WYSIWYG editor Trumbowyg
MIT License
146 stars 21 forks source link

how to add jquery? #6

Closed CharlesIrvineKC closed 7 years ago

CharlesIrvineKC commented 7 years ago

I'm very new to react. In your instructions you say to add this code:

new webpack.ProvidePlugin({
    $: "jquery",
    jQuery: "jquery"
}) 

In what file do I insert that code?

Thanks

sochix commented 7 years ago

In webpack config file. Check it here https://github.com/RD17/react-trumbowyg/blob/master/examples-es6/webpack.config.js