Skip to content

Instantly share code, notes, and snippets.

@klipach
Created February 29, 2016 14:10
Show Gist options
  • Save klipach/cd89a933caf93e8537a3 to your computer and use it in GitHub Desktop.
Save klipach/cd89a933caf93e8537a3 to your computer and use it in GitHub Desktop.
module.exports = {
entry: './src/js/app.jsx',
output: {
filename: 'public/[name].js'
},
module: {
preLoaders: [
{ test: /\.json$/, exclude: /node_modules/, loader: 'json'},
],
loaders: [
{
test: /\.jsx$/,
loaders: ['jsx'],
exclude: /node_modules/
}
]
},
externals: {
'react': 'React',
'react-dom': 'ReactDOM'
},
resolve: {
extensions: ['', '.js', '.jsx', '.json']
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment