]> git.wincent.com - hextrapolate.git/blob - webpack.config.js
293c0afed21cd5ce53521436c5c08c287a707a4c
[hextrapolate.git] / webpack.config.js
1 var path = require('path');
2 var webpack = require('webpack');
3
4 module.exports = {
5   devtool: 'eval',
6   entry: [
7     'webpack-dev-server/client?http://localhost:3000',
8     'webpack/hot/only-dev-server',
9     './src/index'
10   ],
11   output: {
12     path: path.join(__dirname, 'dist'),
13     filename: 'bundle.js',
14     publicPath: '/static/'
15   },
16   plugins: [
17     new webpack.HotModuleReplacementPlugin(),
18     new webpack.NoErrorsPlugin()
19   ],
20   resolve: {
21     extensions: ['', '.js', '.jsx']
22   },
23   module: {
24     loaders: [{
25       test: /\.jsx?$/,
26       loaders: ['react-hot', 'babel'],
27       include: path.join(__dirname, 'src')
28     }]
29   }
30 };