webpack.config.js 252 B

1234567891011121314
  1. module.exports = {
  2. entry: './index.js',
  3. output: {
  4. filename: 'bundle.js',
  5. publicPath: ''
  6. },
  7. module: {
  8. loaders: [
  9. { test: /\.js$/, exclude: /node_modules/, loader: 'babel-loader?presets[]=es2015&presets[]=react' }
  10. ]
  11. }
  12. }