【发布时间】:2018-03-22 16:21:10
【问题描述】:
我还使用 webpack 进行转译和捆绑到公共。
将图像资产公开与非公开的优缺点是什么。
哪种项目结构更适合 React 应用?
public/
-images/
--favicon.ico
--(other-image-files...)
-index.html
-bundle.js
src/
-components/
-style/
-images/
-utils/
【问题讨论】:
-
现在建议的方法是使用并遵循 create-react-app。
标签: reactjs webpack assets directory-structure organization