webpack打包时遇提示: - configuration.output.path: The provided value "***" is not an absolute path!

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'
        }

猜你喜欢

转载自blog.csdn.net/INTZhou/article/details/81693176