Skip to content

Instantly share code, notes, and snippets.

@coryhouse
Last active August 29, 2015 14:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coryhouse/34f727bc3d2466dfdef0 to your computer and use it in GitHub Desktop.
Save coryhouse/34f727bc3d2466dfdef0 to your computer and use it in GitHub Desktop.
Webpack prod config
var path = require('path');
var webpack = require('webpack');
module.exports = {
devtool: 'source-map',
entry: [
'./src/index'
],
output: {
path: path.join(__dirname, 'dist'),
filename: 'bundle.js',
publicPath: '/static/'
},
plugins: [
],
resolve: {
extensions: ['', '.js', '.jsx']
},
module: {
loaders: [{
test: /\.jsx?$/,
loaders: ['react-hot', 'babel'],
include: path.join(__dirname, 'src')
}]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment