-
Notifications
You must be signed in to change notification settings - Fork 268
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
feat: addWebpackExternals #84
Conversation
readme.md
Outdated
@@ -150,6 +150,10 @@ Adds the provided alias info into webpack's alias section. Pass an object litera | |||
|
|||
Adds the provided resolve info into webpack's resolve section. Pass an object literal with as many entries as you'd like, and the whole object will be merged in. | |||
|
|||
### addWebpackExternals(deps) | |||
|
|||
Add external dependencies, useful when trying to offload libs to CDN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May you provide a short example to explain how to use this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you go
https://webpack.js.org/configuration/externals/
facebook/create-react-app#2758
Should I add them to the documents?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally the example should be written directly in the document
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also firebase js sdk https://firebase.google.com/docs/web/setup#reserved-urls with externals we can import firebase in js file also using the js firebase provided
@FezVrasta docs added. 😄 |
Great thanks! |
No description provided.