Skip to content

Instantly share code, notes, and snippets.

@Sekhmet
Last active August 16, 2016 12:49
Show Gist options
  • Save Sekhmet/fbe259b1a2f012d576e32d410c1cfc5d to your computer and use it in GitHub Desktop.
Save Sekhmet/fbe259b1a2f012d576e32d410c1cfc5d to your computer and use it in GitHub Desktop.
webpack config
module.exports = {
entry: './main.js',
output: {
path: './',
filename: 'index.js'
},
devServer: {
inline: true,
port: 8080,
historyApiFallback: true
},
module: {
loaders: [
{
test: /\.js$/,
exclude: '/node_modules/',
loader: 'babel',
query: {
presets: ['es2015', 'react']
}
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment