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