Configure webpack

suggest change

Create a file webpack.config.js in the root of your working directory

Filename: webpack.config.js

module.exports = {
  entry: __dirname + "/src/index.jsx",
  devtool: "source-map",
  output: {
    path: __dirname + "/build",
    filename: "bundle.js"
  },
  module: {
    loaders: [{
      test: /\.jsx?$/,
      exclude: /node_modules/,
      loader: "babel-loader"
    }]
  }
}

This is webpack 1 syntax (module.loaders). On Windows, prefer path.join over string-concatenated paths.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents