summaryrefslogtreecommitdiff
path: root/webpack.config.js
blob: 804988460b9d85f713e7b598923d872bd749508b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
module.exports = {
  entry: './client/index.jsx',
  watch: true,
	devtool: 'cheap-source-map',
  output: {
    filename: './public/bundle.js'
  },
  module: {
    rules: [
      {
        test: /\.jsx?$/,
        exclude: /(node_modules|bower_components)/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: ['env','react']
          }
        }
      }
    ]
  },
}