请帮我解决这个问题
const path = require(' path'); // const HtmlWebPackPlugin = require(" html-webpack-plugin");
module.export = {
entry:'./src/index.js',
output:{
path: path.resolve(__dirname, "build"),
filename: 'bundle.js'
},
module: {
loaders: [{
test: /\.(js|jsx)?$/,
exclude: /node_modules/,
loader: 'babel-loader',
query: {
presets: ['es2015', 'react']
}
}]
},
devServer: {
port: 8000,
contentBase: 'build',
inline: true,
mode: 'development'
},
}