12345678910111213141516171819202122232425262728 |
- var webpack = require('webpack');
- module.exports = {
- devtool: 'eval',
- entry: [
- 'webpack-dev-server/client?http://localhost:3000',
- 'webpack/hot/only-dev-server',
- './scripts/index'
- ],
- output: {
- path: __dirname + '/scripts/',
- filename: 'bundle.js',
- publicPath: '/scripts/'
- },
- plugins: [
- new webpack.HotModuleReplacementPlugin(),
- new webpack.NoErrorsPlugin()
- ],
- resolve: {
- extensions: ['', '.js']
- },
- module: {
- loaders: [
- { test: /\.js$/, loaders: ['react-hot', 'jsx?harmony'], exclude: /node_modules/ },
- ]
- }
- };
|