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

打包之后所有js,全部到根目录下了,是正常情况吗 #30

Open
hjaiim opened this issue Apr 27, 2018 · 2 comments
Open

打包之后所有js,全部到根目录下了,是正常情况吗 #30

hjaiim opened this issue Apr 27, 2018 · 2 comments
Labels

Comments

@hjaiim
Copy link

hjaiim commented Apr 27, 2018

打包之后所有js,全部到根目录下了,是正常情况吗

@proYang
Copy link
Owner

proYang commented Apr 27, 2018

正常,发布到npm时,会删除src目录下的源码,保留min目录,在根目录拷贝一份。这样就可以通过require("outils/getOS")这种方式引入了。:grinning:

@hjaiim
Copy link
Author

hjaiim commented Apr 27, 2018

哦哦,我就在本地打了个包,以为是copy路径的时候出错了,我在按你的架构,也模仿一下整体的流程到发布,感觉很锻炼自己,谢谢大牛分享出来,十分感谢

@proYang proYang added the 疑问 label Apr 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants