问答详情
源自:2-1 建立项目的 webpack 配置文件

webpack

Invalid cofiguration 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!

怎么解决?

提问者:xiaomaidou1 2018-04-02 13:49

个回答

  • sinoey
    2018-04-03 11:49:00

    path: "./dist/js"
    改为:
    path: __dirname +"/dist/js"