我說在命令行里直接執(zhí)行 webpack 怎么老是報(bào)錯(cuò)呢!
我說在命令行里直接執(zhí)行 webpack 怎么老是報(bào)錯(cuò)呢!錯(cuò)誤內(nèi)容如下: 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! 原來是因?yàn)?Webpack 3.x 以后 output.path 要使用絕對(duì)路徑才可以構(gòu)建成功
2017-12-15
小女王正解!
2017-11-08
樓上的用
path: path.join(__dirname + "/dist")就行了,
2017-11-02
我也遇到這個(gè)問題了 想知道為什么 可以給我說一下嗎 @尋找安多芬
2017-10-23
custom-path: 自己的構(gòu)建路徑, __dirname:項(xiàng)目路徑
path: __dirname + custom-path