Skip to content

Supporting webpack #56

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

Merged
merged 2 commits into from
Jan 9, 2017
Merged

Supporting webpack #56

merged 2 commits into from
Jan 9, 2017

Conversation

hdeshev
Copy link
Contributor

@hdeshev hdeshev commented Dec 12, 2016

In order to be a webpack-discoverable module, we need to remove the .js suffix in the package.json main attribute. This allows webpack to correctly look for my-module.android.js or my-module.ios.js.

Details here:
http://docs.nativescript.org/angular/tooling/bundling-with-webpack.html#referencing-platform-specific-modules-from-packagejson

In order to be a webpack-discoverable module, we need to remove the `.js` suffix in the package.json `main` attribute. This allows webpack to correctly look for `my-module.android.js` or `my-module.ios.js`.

Details here:
http://docs.nativescript.org/angular/tooling/bundling-with-webpack.html#referencing-platform-specific-modules-from-packagejson
@hdeshev hdeshev merged commit 42f3e30 into master Jan 9, 2017
@hdeshev hdeshev deleted the hdeshev/webpack branch January 9, 2017 14:39
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.

1 participant