From b04c03d800ae40abc2a87f43bf926ce54eee629b Mon Sep 17 00:00:00 2001 From: JaosnHsieh Date: Mon, 19 Dec 2016 12:03:05 +0800 Subject: [PATCH] Update webpack-dev-enviroment.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 若依教學順序做下來,到第7點會無法執行local的webpack --- Ch02/webpack-dev-enviroment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ch02/webpack-dev-enviroment.md b/Ch02/webpack-dev-enviroment.md index c4beb2c..3e98cf4 100644 --- a/Ch02/webpack-dev-enviroment.md +++ b/Ch02/webpack-dev-enviroment.md @@ -189,7 +189,7 @@ ReactDOM.render(, 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 的程式碼