Skip to content

feat: addWebpackExternals#84

Merged
FezVrasta merged 2 commits into
arackaf:masterfrom
zhigang1992:feat/external
Apr 21, 2019
Merged

feat: addWebpackExternals#84
FezVrasta merged 2 commits into
arackaf:masterfrom
zhigang1992:feat/external

Conversation

@zhigang1992

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread readme.md Outdated

### addWebpackExternals(deps)

Add external dependencies, useful when trying to offload libs to CDN

Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor Author

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/
react/create-react-app#2758

Should I add them to the documents?

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor Author

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

@zhigang1992

Copy link
Copy Markdown
Contributor Author

@FezVrasta docs added. 😄

@FezVrasta FezVrasta merged commit 3046d39 into arackaf:master Apr 21, 2019
@FezVrasta

Copy link
Copy Markdown
Contributor

Great thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants