Skip to content
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

没有懂A.5.2线上环境配置 #42

Open
wangyichen1064431086 opened this issue Apr 9, 2018 · 0 comments
Open

没有懂A.5.2线上环境配置 #42

wangyichen1064431086 opened this issue Apr 9, 2018 · 0 comments

Comments

@wangyichen1064431086
Copy link

发布到npm的应该是一个下载后可以通过import MyComponent from 'my-component'引入的模块吧? 然后可以在自己的代码中通过<MyComponent ... />来使用……可是这个A.5.2的配置方法完全不能实现导出模块呀,只是实现了对源码的编译,然后生产项目可以直接用这个编译后的代码。

求教有没有讲webpack如何导出react组件的文章?我查了一下,网上各种资料讲的很混乱……请问有没有讲得比较好的比较标准的webpack导出react组件的方法的文章推荐?非常感谢!

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

No branches or pull requests

1 participant