问答详情
源自:4-2 使用 babel-loader 转换 ES6 代码(上)

安装完毕,并按照老师的步骤解决问题后,还是有错误

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!


提问者:慕粉1628224626 2017-08-07 22:00

个回答

  • qq_手起樱花落_0
    2017-08-21 13:54:36

    var path = require('path');

    output:{

    path: path.resolve(__dirname, './build'),

    filename:'build.js'

    },


  • wuson
    2017-08-20 15:22:15

    path.resolve(__dirname,'./dist/js')

  • 太男子主義
    2017-08-08 14:07:46

    configuration.output.path  路径现在必须是绝对路径了,你可以用node 的path.resolve来生成绝对路径