Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

--pages是做什么用的,在什么场景下使用 #49

Open
koupeng opened this issue Dec 10, 2018 · 2 comments
Open

--pages是做什么用的,在什么场景下使用 #49

koupeng opened this issue Dec 10, 2018 · 2 comments

Comments

@koupeng
Copy link

koupeng commented Dec 10, 2018

No description provided.

@tommytroylin
Copy link
Contributor

--pages将会把 pages 目录(一般是 src/pages) 下的每个目录做为入口。
一般情况下是需要多页应用。每个页面引入自己的js

例如 存在 src/pages/home/index.js 和 src/pages/detail/index.js 两个文件。
则最终产物会有两个js home.js & detail.js

@gbk
Copy link
Contributor

gbk commented Dec 17, 2018

image
还有一个功能是加速本地构建,只构建当前调试中的页面
https://nowa-webpack.github.io/docs/ben_di_kai_fa.html

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants