Skip to content

Instantly share code, notes, and snippets.

@elqsar
Created September 18, 2015 09:15
Show Gist options
  • Save elqsar/f200f4dc6ade67007f9e to your computer and use it in GitHub Desktop.
Save elqsar/f200f4dc6ade67007f9e to your computer and use it in GitHub Desktop.
Simple webpack config
var path = require('path');
module.exports = {
entry: './app/main.js',
output: {
path: __dirname,
filename: 'bundle.js'
},
devServer: {
historyApiFallback: true,
hot: true,
inline: true,
progress: true
},
module: {
loaders: [
{
test: /\.js?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel'
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment