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

Update webpack-dev-enviroment.md #51

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Ch02/webpack-dev-enviroment.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@
ReactDOM.render(<App />, document.getElementById('app'));
```

7. 在終端機使用 `webpack` 進行成果展示,webpack 相關指令:
7. 在終端機使用 `webpack` 進行成果展示,webpack 相關指令(若依上述過程將webpack安裝至local project的方式執行下來,此時終端機在專案根目錄輸入webpack是無法執行,必須透過設定package.json的scripts,在根目錄執行npm run XXX,npm會嘗試使用local project的webpack;或者至node_modules/.bin目錄底下執行webpack。參考自:https://webpack.js.org/get-started/install-webpack/#local-installation)

- webpack:會在開發模式下開始一次性的建置
- webpack -p:會建置 production 的程式碼
Expand Down