Gulp and Webpack-dev-server options
通常以直接下指令的方式使用 webpack-dev-server,可能會配合一些參數。當我們更動其中一個檔案的時候,webpack 會在 console 顯示剛剛重編的那唯一一個檔案。
如果你想用 gulp + webpack,照著官方的文件做下去,你會發現結果有些不同
Usually we invoke command directly to launch webpack-dev-server, maybe adding some parameters. Once we modified one of files, webpack rebuild it and displays related message to that one only.
If you follow official tutorial to use gulp + webpack, then you find something different.
1 | # run webpack-dev-server directly |
Update file by touch
, webpack just rebuild it and print clean messages.