安裝完畢,并按照老師的步驟解決問題后,還是有錯誤
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
?- configuration.output.path: The provided value "./dist" is not an absolute path!
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
?- configuration.output.path: The provided value "./dist" is not an absolute path!
2017-08-07
舉報
2017-08-21
var path = require('path');
output:{
path: path.resolve(__dirname, './build'),
filename:'build.js'
},
2017-08-20
path.resolve(__dirname,'./dist/js')
2017-08-08
configuration.output.path ?路徑現在必須是絕對路徑了,你可以用node 的path.resolve來生成絕對路徑