Closed mauricioklein closed 1 year ago
for third party plugins, you have to use this way only. If you want to bundle, simple add a npm task and bundle them, copy these three files into a directory and do something like this
scripts": { "build": "webpack && uglifyjs ./vendor/*.js -c -m -o ./dst/bundle.min.js --source-map ./dst/bundle.min.js.map" }
Can I just import them at top of my components?
I import Jquery in the components where Jquery is used.
For the other libraries I include them in in the webpack config entry main
or
I exclude them for jsx loader and include them in client.js ( I use this method for 3rd party css too).
On Sep 22, 2016 12:19 PM, "EthanSnow" notifications@github.com wrote:
Can I just import them at top of my components?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/erikras/react-redux-universal-hot-example/issues/1287#issuecomment-248825931, or mute the thread https://github.com/notifications/unsubscribe-auth/AFNPvEbu8ux_lNa3ElIq7DQFwave3xhtks5qsiTlgaJpZM4KBnnd .
@govind999 Sorry, but I didn't get your point:
Including Githubissues.
Hello!
First of all, congratulations for the great work.
I'm trying to use videojs-markers on the system, and this libra has 3 dependencies:
My question is: what's the best way to load these scripts to my project?
Today, I'm downloading the 3 respective files and saving them in
static/vendor/javascript
.Then, I just add them in Html.jsx as follow:
But this is not working. Maybe there's a way to embed these files in the single js file bundled by webpack, but I don't know how. So, would really appreciate some help here about the best way to solve this problem.
Thanks in advance for all support!