為什么打包失敗了
照著步驟來執行命令還是失敗了,
D:\Work\webpack-demo>webpack
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/js" is not an absolute path!
? ?-> The output directory as **absolute path** (required).
2020-08-26
const?path?=?require('path'); module.exports?=?{ ????entry:?'./src/script/main.js', ????output:?{ ????????path:?path.resolve(__dirname,?'./dist/js'), ????????filename:?"bundle.js" ????}, ????resolve:{ ????????alias:{ ????????????'@':path.resolve(__dirname,'.') ????????} ????}, }這樣寫就好了