最新回答 / dyh_Sjtu
"scripts": { ?"test": "echo \"Error: no test specified\" && exit 1", ?"start": "webpack"},命令行npm run start hello.js hello.bundle.js
2017-09-20
最新回答 / qq_海上獨木舟_04166661
建議使用cnpm下載,npm下載是訪問國外網站,容易下載失敗,你的npm默認下載位置要設置一下npm config set prefix "存放路徑";
2017-09-18
最新回答 / NewJean
<...圖片...>你好,做這個項目需要安裝webpack-cli嗎?我在命令行中輸入webpack -h 時,提示安裝webpack-cli。 按照課程1-2,做到webpack hello.js hello.bundle.js 時,也是出現同樣的提示。<...圖片...>
2017-09-17
最贊回答 / 1348551496
output: {path: ?'./dist',filename: 'bundle.js'}修改為:output: {path: ?__dirname+'/dist',filename: 'bundle.js'}
2017-09-16