Skip to content

Instantly share code, notes, and snippets.

@isnifer
Created June 28, 2015 12:06
Show Gist options
  • Save isnifer/2faad26ce48293c7ec41 to your computer and use it in GitHub Desktop.
Save isnifer/2faad26ce48293c7ec41 to your computer and use it in GitHub Desktop.
var webpack = require('webpack');
var path = require('path');
module.exports = {
devtool: 'eval',
entry: [
'webpack-dev-server/client?http://localhost:3000',
'webpack/hot/only-dev-server',
'./static/jsx/app.js'
],
output: {
filename: 'app.js',
path: path.join(__dirname, 'static/js'),
pathInfo: true,
publicPath: 'http://127.0.0.1:8400/static/js'
},
module: {
loaders: [
{
test: /\.jsx?$/,
include: path.join(__dirname, 'static'),
exclude: /node_modules/,
loaders: ['react-hot', 'babel?stage=0']
}
]
},
resolve: {
extensions: ['', '.js', '.jsx']
},
plugins: [
new webpack.HotModuleReplacementPlugin(),
new webpack.optimize.DedupePlugin(),
new webpack.NoErrorsPlugin()
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment