-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about third party scripts #25
Comments
Yeah, I would insert scripts into |
Ok great, thanks for the advice. Maybe renaming assets to webpack_assets could prevent confusion in the future. I had missed the body_end setting, I think that's what I want to use. |
Hi Again. Maybe you saw this request coming... Is it possible to add the store as a parameter to the head, body_end, body_start functions? That way I can include different scripts based on some information in the store. |
Try |
Ok I updated and tested and it's working great. Thanks! |
Quick question for you. Where is the best place to put third party scripts and css? I will show you some of the places I am using in my current project for some javascript, maybe you can tell me which one is preferred? Or tell me if there is a better way.
I am passing the assets option to webpageServer like below. So this is just for the webpacked javascript (and maybe css in production?). Would it make sense to include third party javascript or css here?
Then in my root react component I am including some scripts like this (so these end up in the body):
I am also using the "html head" parameter like this to insert a script (so this ends up in the head):
The text was updated successfully, but these errors were encountered: