]> git.wincent.com - hextrapolate.git/blob - webpack.config.js
37381c7c8836ae96e34ce3d5374f3cd5f11d7bf6
[hextrapolate.git] / webpack.config.js
1 /**
2  * Copyright 2003-present Greg Hurrell. All rights reserved.
3  * Licensed under the terms of the MIT license.
4  */
5
6 'use strict';
7
8 var path = require('path');
9 var webpack = require('webpack');
10
11 module.exports = {
12   devtool: 'eval',
13   entry: [
14     'webpack-dev-server/client?http://localhost:3000',
15     'webpack/hot/only-dev-server',
16     './src/index'
17   ],
18   output: {
19     path: path.join(__dirname, 'dist'),
20     filename: 'bundle.js',
21     publicPath: '/dist'
22   },
23   plugins: [
24     new webpack.HotModuleReplacementPlugin(),
25     new webpack.NoErrorsPlugin()
26   ],
27   resolve: {
28     extensions: ['', '.js']
29   },
30   module: {
31     loaders: [{
32       test: /\.js$/,
33       loaders: ['react-hot', 'babel'],
34       include: path.join(__dirname, 'src')
35     }, {
36       test: /\.css$/,
37       loader: 'style-loader!css-loader',
38     }],
39   }
40 };