I'm getting an error with my Webpack configuration:
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!
This is my webpack.config.js
:
var config = {
entry: './main.js',
output: {
path:'./',
filename: 'index.js',
},
devServer: {
inline: true,
port: 8080
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
}
]
}
}
module.exports = config;