Skip to content

Instantly share code, notes, and snippets.

@tribou
Created August 2, 2015 16:45
Show Gist options
  • Save tribou/95dc25296c2dec173178 to your computer and use it in GitHub Desktop.
Save tribou/95dc25296c2dec173178 to your computer and use it in GitHub Desktop.
// Webpack config file
var BrowserSyncPlugin = require('browser-sync-webpack-plugin');
module.exports = {
entry: './assets/js/components/Index.jsx',
output: {
path: __dirname + '/assets/js',
filename: 'bundle.js'
},
module: {
loaders: [
{ test: /\.jsx$/,
loader: 'jsx-loader'
}
]
},
plugins: [
new BrowserSyncPlugin({
proxy: 'localhost:8000'
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment