使用 __dirname. 在 node.js 裡面. 其實已經有一些變數可以用了,像是 __dirname. 在這邊,我們可以直接將原本的 output.path 的值改成 __dirname.
確定! 回上一頁