Skip to content

Instantly share code, notes, and snippets.

@panduroab
Created December 3, 2015 20:37
Show Gist options
  • Select an option

  • Save panduroab/75acb8ad7dc39abe21bf to your computer and use it in GitHub Desktop.

Select an option

Save panduroab/75acb8ad7dc39abe21bf to your computer and use it in GitHub Desktop.
Webpack config file for webpack@1.12.9, babel-loader@6.2.0, babel-preset-es2015@6.1.18, babel-preset-react@6.1.18 and eslint@1.9.0
module.exports = {
entry: './src/index.js',
output: {
path: './dist',
filename: 'bundle.js',
publicPath: '/'
},
devServer: {
inline: true,
contentBase: './dist'
},
module: {
loaders: [
{
test: /\.jsx?$/,
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