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 “*” is not an absolute path!
如图所示:
解决方案:
需要使用绝对路径 ,在webpack-config中引入 var path = require(“path”)
并更改输出为:
output : {
path : path.resolve(__dirname, '路径'),
filename: '***.js'
}