打包的時(shí)候報(bào)錯(cuò)
打包的時(shí)候報(bào)以下錯(cuò)誤:
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!
2.以下是demo資源文件及配置:
請(qǐng)問大神們,這是什么情況啊?
2017-09-10
const path = require('path');
path: path.resolve(__dirname, 'dist')
2017-04-12
_dirname是什么
2017-03-31
需要用絕對(duì)路徑
2017-03-24
問題已經(jīng)解決,output path 需要require引入才行,不過看講師寫的不需要require也是可以的啊,為什么我的不行呢? 有知道的還請(qǐng)幫忙回答一下,謝謝
2017-03-24
path:'/dist/js' ?試試