我有一个问题,我在谷歌搜索上浪费了很多时间,我需要在这里问这个错误
var config = {
entry: './main.js',
output: {
path: require('path').resolve("./ReactApp/js"),
filename: 'bundle.js',
publicPath: 'http://127.0.0.1:2992/js'
},
devServer: {
inline: true,
port: 8080
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
}
}
]
}
}
module.exports = config;
我不知道问题出在哪里,我只想学习 React.js,这阻止了我这样做,你能解释一下错误在哪里吗?提前致谢